Python出现:TabError: inconsistent use of tabs and spaces in indentation

Python出现:TabError: inconsistent use of tabs and spaces in indentation

  • 今天跑爬虫的时候遇到一个小问题
    Python出现:TabError: inconsistent use of tabs and spaces in indentation
    Python出现:TabError: inconsistent use of tabs and spaces in indentation
  • 这个说是制表符出了问题,我查了查,说是用sublime可以看清楚自己有没有打空格和制表符,其实用不用sublime不重要,我突然意识到的改代码用的是Notepad++记事本,这一复制~就的确可能会出现这个问题,于是开个编译器格式化一下就好。
  • 没自己done掉~
    Python出现:TabError: inconsistent use of tabs and spaces in indentation