标签: python class in-class-initialization
Traceback (most recent call last): File "dog.py", line 13, in <module> d = Dog('Fido') TypeError: object() takes no parameters
错误报告:
tapply()
答案 0 :(得分:4)
你有一个错字。方法__int__应称为__init__。
__int__
__init__