lipeng 发表于 2017-5-1 12:04:32

python代码运行出现以下异常

python代码运行出现以下异常:
IndentationError: unindent does not match any outer indentation level



可能导致的原因:该行代码缩进的方式和其他行的代码不一致
(tab键缩进和4个空格键缩进存在冲突)
网页上复制过来的代码是用4个空格键缩进的,通常手动写的代码使用tab键进行缩进
页: [1]
查看完整版本: python代码运行出现以下异常