在分配大量字段时,首选以下两种格式之一
1) 运算符周围有一个空格,这是 pep8 在 python 中推荐的。
field1 = field1value
field2_with_large_name = field2value
field3 = field3value
field4 = field4value
field5_with_large_name = field5value
field6_midlegth = field6value
field7_with_large_name = field7value
field8 = field8value
field9 = field9value
2)更易读的表格形式:
field1 = field1value
field2_with_large_name = field2value
field3 = field3value
field4 = field4value
field5_with_large_name = field5value
field6_midlegth = field6value
field7_with_large_name = field7value
field8 = field8value
field9 = field9value