主页
Python
Python *args 和 **kwargs
demo_function_unpack_list
运行 ❯
×
更改方向
保存代码
更改主题
def my_function(a, b, c): return a + b + c numbers = [1, 2, 3] result = my_function(*numbers) print(result)
6