result = Animal.filter(name='dog', sex='female', age='2', color='yellow').limit(100).order(born)
2 回答

慕哥6287543
TA貢獻1831條經驗 獲得超10個贊
Yes:
# Aligned with opening delimiterfoo = long_function_name(var_one, var_two, var_three, var_four)# More indentation included to distinguish this from the rest.def long_function_name( var_one, var_two, var_three, var_four): print(var_one)
No:
# Arguments on first line forbidden when not using vertical alignmentfoo = long_function_name(var_one, var_two, var_three, var_four)# Further indentation required as indentation is not distinguishabledef long_function_name( var_one, var_two, var_three, var_four): print(var_one)
Optional:
# Extra indentation is not necessary.foo = long_function_name( var_one, var_two, var_three, var_four)

萬千封印
TA貢獻1891條經驗 獲得超3個贊
result = Animal.filter( name='dog', sex='female', age='2', color='yellow' ).limit(100).order(born)
添加回答
舉報
0/150
提交
取消