PyCharm中解决TabError: inconsistent use of tabs and spaces in indentation

当把代码从别处复制进来PyCharm,然后运行报错:TabError: inconsistent use of tabs and spaces in indentation 这个报错的意思是说IDE分不清tab和空格,说明你的代码中混用了tab和空格。 解决的方法有: 方法一. 找出所有的空格和tab 首先 File -> Settings -> Editor -> General -> Appe
相关文章
相关标签/搜索