“inconsistent use of tabs and spaces in indentation”

后端 未结 28 2672
北恋
北恋 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:18

    I recently had the same problem and found out that I just needed to convert the .py file's charset to UTF-8 as that's the set Python 3 uses.

    BTW, I used 4-space tabs all the time, so the problem wasn't caused by them.

提交回复
热议问题