23 lines
273 B
Python
Executable File
23 lines
273 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
|
|
class Run:
|
|
|
|
def __init__(self):
|
|
self.n = 0
|
|
|
|
def inc(self):
|
|
self.n += 1
|
|
|
|
def __str__(self):
|
|
return f"\tTest Callable Class: {self.n}"
|
|
|
|
def __call__(self):
|
|
print(self)
|
|
self.inc()
|
|
|
|
|
|
run = Run()
|
|
|
|
|