Are there any pitfalls with using whitespace in Python?

后端 未结 17 1354
时光取名叫无心
时光取名叫无心 2021-01-06 17:36

At the moment I have never had a problem with whitespace in Python (although I\'ve only used it in two projects and I was the only programmer). What are some potential pitf

17条回答
  •  渐次进展
    2021-01-06 18:10

    That actually kept me away from Python for a while. Coming from a strong C background, I felt like I was driving without a seat belt.

    It was aggravating when I was trying to fill up a snippet library in my editor with boilerplate, frequently used classes. I learn best by example, so I was grabbing as many interesting snippets as I could with the aim of writing a useful program while learning.

    After I got in the habit of re-formatting everything that I borrowed, it wasn't so bad. But it still felt really awkward. I had to get used to a dynamically typed language PLUS indentation controlling my code.

    It was quite a leap for me :)

提交回复
热议问题