mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
bc991249b9
commit
6ba0aff3a4
@ -56,12 +56,9 @@ def add(a, b):
|
|||||||
class A:
|
class A:
|
||||||
def __init__(self, x):
|
def __init__(self, x):
|
||||||
self.x = x
|
self.x = x
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
return self.x
|
return self.x
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print('ans_1:', add(1, 2))
|
print('ans_1:', add(1, 2))
|
||||||
print('ans_2:', A('abc').get())
|
print('ans_2:', A('abc').get())
|
||||||
exit()
|
exit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user