在 Python 中使用[]、使用()或不使用任何方式解包函数调用有什么区别?
[]
()
def f(): return 0, 1 a, b = f() # 1 [a, b] = f() # 2 (a, b) = f() # 3
python iterable-unpacking
iterable-unpacking ×1
python ×1