📌  相关文章
📜  python代码示例中的kwargs

📅  最后修改于: 2022-03-11 14:45:26.467000             🧑  作者: Mango

代码示例5
def foo(*args):
    for a in args:
        print(a)        

foo(1)
# 1

foo(1,2,3)
# 1
# 2
# 3