TabError: inconsistent use of tabs and spaces in indentation

TabError: inconsistent use of tabs and spaces in indentation 这个错误,很简单,意思就是tab和空格混用了。 在python代码中,一般要么都用空格来表示缩进,要么都用tab来表示缩进。 那如果出现这样的问题,如何去排查代码中的空格和tab呢? 运行时报错 找错误文件位置 提示了以上错误,并且说明是在哪个文件哪一行出现的问题,那这样就很简
相关文章
相关标签/搜索