解决报错:TabError: inconsistent use of tabs and spaces in indentation

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaotao_1/article/details/82702849

python出现了报错:TabError: inconsistent use of tabs and spaces in indentation

分析:这个报错就是说混用了tab和4个空格造成的,

解决办法:检查代码,要不全部用tab,要不全部用4个空格,或者用IDE编辑器校正。

猜你喜欢

转载自blog.csdn.net/xiaotao_1/article/details/82702849