【发布时间】:2013-02-05 10:00:50
【问题描述】:
由于代码中有这部分,我无法编译:
if command == 'HOWMANY':
opcodegroupr = "A0"
opcoder = "85"
elif command == 'IDENTIFY':
opcodegroupr = "A0"
opcoder = "81"
我有这个错误:
Sorry: IndentationError: ('unndent does not match any external indentation level', ('wsn.py', 1016, 30, "\t\telif command == 'IDENTIFY':\n"))
但我没有看到任何缩进错误。可能是什么问题?
【问题讨论】:
-
检查是否混合了制表符和空格
-
另外,在您的编辑器中打开显示空白。它对 Python 等可识别空格的语言有很大帮助。
标签: python compiler-errors indentation