请问大家这个错误反应什么呢 代码按照答案输入 通过不了 谢谢大家
Traceback (most recent call last): File "index.py", line 9, in p1 = Person('Bob') File "index.py", line 6, in __init__ person.__count = person.__count + 1 NameError: global name 'person' is not defined
Traceback (most recent call last): File "index.py", line 9, in p1 = Person('Bob') File "index.py", line 6, in __init__ person.__count = person.__count + 1 NameError: global name 'person' is not defined
2018-09-07
举报