学Python中的一个错误

来源:互联网 发布:oracle索引优化 工具 编辑:程序博客网 时间:2024/04/28 21:33

初学Python,遇到一个问题一直没解开:

Python Error: Inconsistent indentation detected! help can't find a fix?

When I run my code i got the above error and the following: 
1)Your indentation is outright incorrect(easy to fix), OR 
2)Your indentation mixes tabs and spaces 

应为Python对格式对齐要求很严,所以应该是对齐的问题。

解决方法:在提示处用空格键修改对齐。

0 0
原创粉丝点击