Is there a way around coding in Python without the tab, indent & whitespace criteria?

前端 未结 29 1024
小鲜肉
小鲜肉 2020-12-31 14:05

I want to start using Python for small projects but the fact that a misplaced tab or indent can throw a compile error is really getting on my nerves. Is there some type of s

29条回答
  •  爱一瞬间的悲伤
    2020-12-31 14:32

    Check the options of your editor or find an editor/IDE that allows you to convert TABs to spaces. I usually set the options of my editor to substitute the TAB character with 4 spaces, and I never run into any problems.

提交回复
热议问题