主页
Python
Python *args 和 **kwargs
demo_function_args_regular
运行 ❯
×
更改方向
保存代码
更改主题
def my_function(greeting, *names): for name in names: print(greeting, name) my_function("Hello", "Emil", "Tobias", "Linus")
HelloEmil
HelloTobias
HelloLinus