Pycharm报错:error--inconsistent use of tabs and spaces in indentation

今天晚上遇见了这个报错。

原因:就是代码格式有问题,可能是代码缩进,空格等问题。

解决方法:调整代码缩进的格式,每次缩进使用8个空格,反正代码的编写格式没问题了,这个错误就解决了。

猜你喜欢

转载自blog.csdn.net/qq_33472146/article/details/93523106