Difference between writing something on one line and on several lines

后端 未结 6 1565
我寻月下人不归
我寻月下人不归 2021-01-13 03:16

Where is the difference when I write something on one line, seperated by a , and on two lines. Apparently I do not understand the difference, because I though t

6条回答
  •  萌比男神i
    2021-01-13 03:51

    A perfect explanation from Raymond Hettinger can be found in this PyCon 2013 video between 33:13 and 38:17:

    https://www.youtube.com/watch?v=OSGv2VnC0go

    Quote from his presentation:

    • don't underestimate the advantages of updating state variabes at the same time
    • eliminates an entire class of errors due to out-of-order updates

提交回复
热议问题