TabError: inconsistent use of tabs and spaces in indentation怎么解决?
背景使用第三方SDK时提示错误:TabError: inconsistent use of tabs and spaces in indentation分析查询资料发现是Tab和空格交叉使用导致的,或者空格数不一致导致的。Python开发环境中空格数是至关重要的。解决使用ctrl+Alt+L对代码进行规范整理。这是Pycharm或者IDEA工具的快捷键,可将代码进行规范化整理。个人能力有限,如有谬误欢迎指正!...