错误代码门户
PythonPython错误代码

AttributeError

AttributeError

代码 AttributeError · Python 报告的问题。

当属性引用(请参阅属性引用)或分配失败时引发。 (当对象根本不支持属性引用或属性分配时,会引发 TypeError。) 可选的 name 和 obj 仅关键字参数设置相应的属性:

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

Raised when an attribute reference (see Attribute references) or assignment fails. (When an object does not support attribute references or attribute assignments at all, TypeError is raised.) The optional name and obj keyword-only arguments set the corresponding attributes:

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。