在以下情况下,我应如何改善许多或较长变量的分配以遵循规则E122和E501:
def my_example_function():
return 1, 2, 3, 4
# How can I improve the following line:
first_variable, second_variable, third_variable, fourth_variable = my_example_function()
最佳答案
只需跨多行即可。
( first_variable, second_variable,
third_variable, fourth_variable ) = my_example_function()