函數參數*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
相關文章
相關標籤/搜索