python IDLE编程时遇到Python Error: Inconsistent indentation detected! 解决方法 仔细检查了几遍代码,发现indent没有错误! 之后试将所有indent都用空格代替,程序就跑起来了。 具体原因可能是IDLE环境内的Tab键有小bug。