初学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
1)Your indentation is outright incorrect(easy to fix), OR
2)Your indentation mixes tabs and spaces
应为Python对格式对齐要求很严,所以应该是对齐的问题。
解决方法:在提示处用空格键修改对齐。