>>> class A:
def a(self):
print("I'm a")
>>> A.a()
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
A.a()
TypeError: unbound method a() must be called with A instance as first argument (got nothing instead)
小弟新手,请轻拍!
MMTTMM
相关分类