sublime text下 Python 问题:TabError: inconsistent use of tabs and spaces in indentation

解决办法:Preferences->Settings中添加以下代码:

,

"draw_white_space": "all"

注意:如果你的设置里面还有其他东西,你就需要添加逗号让两个不同的设置分割开来

sublime text 会显示横线和点出来,此时再进行缩进对齐就好。

sublime text下 Python 问题:TabError: inconsistent use of tabs and spaces in indentation

 

参考文章https://blog.csdn.net/btujack/article/details/82454073