python代码运行出现以下异常

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



可能导致的原因:该行代码缩进的方式和其他行的代码不一致
tab键缩进4个空格键缩进存在冲突)
网页上复制过来的代码是用4个空格键缩进的,通常手动写的代码使用tab键进行缩进

猜你喜欢

转载自zhenxingluo918.iteye.com/blog/2235282