错误代码门户
PythonPython错误代码

IndentationError

IndentationError

代码 IndentationError · Python 报告的问题。

与不正确缩进相关的语法错误的基类。这是 SyntaxError 的子类。

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

Base class for syntax errors related to incorrect indentation. This is a subclass of SyntaxError.

故障排除与诊断链接

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