Tab Error in Python

前端 未结 4 630
故里飘歌
故里飘歌 2020-12-07 05:01

The following python code throws this error message, and I can\'t tell why, my tabs seem to be in line:

File \"test.py\", line 12
    pass
       ^ TabError         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 05:43

    open your code in a text editor, highlight all of it (ctr+a) and go to format and select either "Tabify region" or "Untabify region". It'll just make all the indents have the same format.

提交回复
热议问题