“inconsistent use of tabs and spaces in indentation”

后端 未结 28 2798
北恋
北恋 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条回答
  •  猫巷女王i
    2020-11-22 01:28

    What I did when the same error popped up: Select everything (Str + A) and press Shift + Tab. So nothing was indented anymore. Now go back to the lines you want to have indented, and put it back how you want it.

    It worked for me...

提交回复
热议问题