PyCharm中遇到: inconsistent use of tabs and spaces in indentation

当使用PyCharm运行代码时出现了TabError: inconsistent use of tabs and spaces in indentation时,说明代码中混杂了空格与Tab,不想一步一步删除(在代码量大时极为繁琐),可以尝试如下的简便方法: 选择左上角菜单栏中的Code—>Reformat Code
相关文章
相关标签/搜索