问题:以前使用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。

 

相关文章:

  • 2021-07-12
  • 2021-10-02
  • 2021-06-13
  • 2021-12-25
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-04
  • 2022-01-13
  • 2021-06-04
  • 2021-09-06
  • 2021-09-12
  • 2021-11-22
相关资源
相似解决方案