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

傷城~ 2022-12-28 00:37 269阅读 0赞

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

Python编译器报错:

  1. TabError: inconsistent use of tabs and spaces in indentation

原因是ide里面的编译器对于空格键和tab键的处理问题。

解决方法:

在报错的代码开头处,删掉tab键,用4个空格替换。

发表评论

表情:
评论列表 (有 0 条评论,269人围观)

还没有评论,来说两句吧...

相关阅读