报错内容:

TabError: Inconsistent use of tabs and spaces in indentation

报错原因是使用了Tab键作为缩进了,报这个错时只需要把Tab键换成全部换成空格就行了


Notepad++中可以显示出t制表符和空格:

python报错TabError: Inconsistent use of tabs and spaces in indentation

相关文章:

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