python AttributeError何解?
以下代码运行出错,什么原因呢?
class Test:
def prt(self):
print(self)
print(self.__class__)
t = Test()
t.prt()
AttributeError: 'Test' object has no attribute '_class_'
zeroflyyer
2017/07/24 02:48- python
- 点赞
- 收藏
- 回答
0个回复
