“inconsistent use of tabs and spaces in indentation”

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

    Well I had the same problem and I realised that the problem is that I copied code from another python editor to sublime.

    I was working with jupyter notebook and then I copied the code into sublime. Apparently when you make specific modifications (like moving code in functions) then indentation gets messy and this is where the problem comes from.

    So just stick to one editor. If you do so, then you will be having no problem.

提交回复
热议问题