用Notepad++写python时,疯狂taberror

解决:哪一行 taberror, 多半那行用的是tab而不是4个空格符,替换成4个空格符就行

 

正如查到的一样,原因是编译器对 制表符 和 空格符 的区分,python对对齐比较严格。

选设置里的 首选项 里的 制表符设置,替换tab为4个空格就好了,以后直接tab就行。

Notepad++: TabError : inconsistent use of tabs and spaces in indentation

相关文章:

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