>>> def test(a, b, *args): ... print(a, b, args) ... >>> test(1, 2, 3, 4, 5) (1, 2, (3, 4, 5)) # 空でもOK >>> test(1, 2) (1, 2, ()) # キーワード指定はできない >>> test(1, 2, args = 3) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: test() got an unexpected keyword argument 'args'