目录
问题一
解决方法
问题二
解决方法
问题一
TabError: inconsistent use of tabs and spaces in indentation
# TabError:缩进中Tab和空格的使用不一致
解决方法
由于tab和空格的混用导致的,建议都使用Tab键。
问题二
IndentationError:expected an indented block
# 缩进错误:应为缩进块
解决方法
该缩进的地方必须缩进,不该缩进的地方不要缩进。一般:(冒号)的下一行都要进行缩进。
注:Python语言是一款对缩进非常敏感的语言