函数参数*arg和参数**arg区别

def sandwich(*toppings): print("\nMaking a sandwich with the following toppings: ") print(toppings) for topping in toppings: print(topping) sandwich('banna','apple') sandwich('apple','beef','pairs') s
相关文章
相关标签/搜索