以下代码运行出错,什么原因呢?
class Test:
def prt(self):
print(self)
print(self.__class__)
t = Test()
t.prt()
AttributeError: 'Test' object has no attribute '_class_'
以下代码运行出错,什么原因呢?
class Test:
def prt(self):
print(self)
print(self.__class__)
t = Test()
t.prt()
AttributeError: 'Test' object has no attribute '_class_'