“inconsistent use of tabs and spaces in indentation”

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

    With the IDLE editor you can use this:

    • Menu EditSelect All
    • Menu FormatUntabify Region
    • Assuming your editor has replaced 8 spaces with a tab, enter 8 into the input box.
    • Hit select, and it fixes the entire document.

提交回复
热议问题