“inconsistent use of tabs and spaces in indentation”

后端 未结 28 2188
北恋
北恋 2020-11-22 00:56

I\'m trying to create an application in Python 3.2 and I use tabs all the time for indentation, but even the editor changes some of them into spaces and then print out \"inc

28条回答
  •  无人共我
    2020-11-22 01:32

    I got the same errors but could not figure out what I was doing wrong.

    So I fixed it by running auto-indent on my code and allowing the machine to fix my fault.

    If anyone is wondering how I did that. Simple. Go in vim. Type in G=gg.

    This will automatically fix everything. Good luck :)

提交回复
热议问题