10 lines
156 B
Python
10 lines
156 B
Python
class Sample:
|
|
def __call__(self, x, y):
|
|
print('call: {}, {}'.format(x, y))
|
|
return x + y
|
|
|
|
s = Sample()
|
|
result = s(10, 20)
|
|
print(result)
|
|
|