Are there any pitfalls with using whitespace in Python?

后端 未结 17 1382
时光取名叫无心
时光取名叫无心 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:02

    The only trouble I've ever had is minor annoyances when I'm using code I wrote before I settled on whether I liked tabs or spaces, or cutting and posting code from a website.

    I think most decent editors these days have a convert tabs-to-spaces and back option. Textmate certainly does.

    Beyond that, the indentation has never caused me any trouble.

提交回复
热议问题