Python's interpretation of tabs and spaces to indent

前端 未结 7 2090
孤街浪徒
孤街浪徒 2020-11-30 08:43

I decided, that I learn a bit of Python. The first introduction says that it uses indentation to group statements. While the best habit is clearly to use just one of these w

7条回答
  •  忘掉有多难
    2020-11-30 09:01

    Just don't interchange them :)
    Set your IDE/editor to input 4 spaces upon pressing "tab" and you are good to go.

提交回复
热议问题