【问题标题】:Attribute Error for Python Class, but is declared [closed]Python类的属性错误,但已声明[关闭] 【发布时间】:2020-10-19 03:28:19 【问题描述】: 我的一个 python 类出现属性错误,但我在该类的 init 函数中声明了它。我不知道我做错了什么 【问题讨论】: 标签: python python-3.x class object attributes 【解决方案1】: 您将“__init__”拼错为“__int__” 【讨论】: 天哪!谢谢! 如果有帮助请采纳我的回答! :) 我们都有声望哈哈