Python:Error: Inconsistent indentation detected!解决办法
2014-01-13 14:22
501 查看
在使用Python自带的IDLE编写代码的过程中,经常会出现莫名其妙的错误,比如这个:
说明你的空格和Tab缩进混淆了(Python对缩进非常严格),解决办法也非常之简单:全选代码——Alt+F5(菜单栏Format——点击Tabify Region),解决
说明你的空格和Tab缩进混淆了(Python对缩进非常严格),解决办法也非常之简单:全选代码——Alt+F5(菜单栏Format——点击Tabify Region),解决
相关文章推荐
- Python:Error: Inconsistent indentation detected!解决办法
- python IDLE编程时遇到Python Error: Inconsistent indentation detected! 解决方法
- Python 错误:Error: Inconsistent indentation detected!...
- [转]Python UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 的解决办法
- python错误提示“TabError: inconsistent use of tabs and spaces in indentation”
- Error: Inconsistent indentation detected!
- Python中UnicodeDecodeError:‘XXX’ codec can’t decode bytes in position错误信息解决办法
- python UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2: ordinal not in range(128)错误解决办法
- 使用Gevent程序正常运行出现这个异常KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored解决办法
- 出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*解决办法
- python TabError: Inconsistent use of tabs and spaces in indentation
- Python常见问题解决办法之:python indentationerror:expected an indented block
- bak 5. 编译libmad 出现error impossible constraint in “asm”时的解决办法.
- Project ERROR:Unknown module(s) in QT: charts解决办法
- error: main.o: Relocations in generic ELF (EM: 3)解决办法
- ORA-20001: Invalid or inconsistent input values解决办法 .
- 1064 - You have an error in your SQL syntax; check the manual that correspon解决办法
- python问题:IndentationError:expected an indented block错误解决
- Maven Error:No compiler is provided in this environment的解决办法
- Spring中出现的he hierarchy of the type ** is inconsistent问题解决办法