Python indentation in “empty lines”

前端 未结 10 2098
野性不改
野性不改 2020-12-29 18:29

Which is preferred (\".\" indicating whitespace)?

A)

def foo():
    x = 1
    y = 2
....
    if True:
        bar()

B)



        
10条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 18:59

    Emacs does B) for me, but I really don't think it matters. A) means that you can add in a line at the correct indentation without any tabbing.

提交回复
热议问题