问题​:以前使用Pycharm和VsCode没遇到问题,使用nodepat++老是提示Tab异常  TabError: inconsistent use of tabs and spaces in indentation。

查看​:视图-显示符号-显示所有字符

Python使用4个空格替换Tab, TabError: inconsistent use of tabs and spaces in indentation。_首选项

解决办法​:

1.删除Tab符号,使用空格替代

2.设置-首选项-语言,替换为空格

Python使用4个空格替换Tab, TabError: inconsistent use of tabs and spaces in indentation。_首选项_02



时间会记录下一切。