📜  kwargs 处理多个参数并循环迭代它们 - Python 代码示例

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

代码示例1
def test_var_args(f_arg, *argv):
    print("first normal arg:", f_arg)
    for arg in argv:
        print("another arg through *argv:", arg)

test_var_args('yasoob', 'python', 'eggs', 'test')