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

写python的时候如果出现如题的错误

 TabError: inconsistent use of tabs and spaces in indentation

意为:制表符错误:缩进中制表符和空格使用不一致

只需要将报错提示中的代码部分中的tab 格删除然后重新打出tab或者空格,就不会再报错了

猜你喜欢

转载自www.cnblogs.com/4991tcl/p/10395574.html