Are there any pitfalls with using whitespace in Python?

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

    The problem is that in Python, if you use spaces to indent basic blocks in one area of a file, and tabs to indent in another, you get a run-time error. This is quite different from semicolons in C.

    This isn't really a programming question, though, is it?

提交回复
热议问题