def foo(args1,argst):
print(args1)
print(argst)
foo("hello","if","you","love")
hello
if you love
*argst是一個(gè)長短可變的參數(shù)第队,用元組表示
def f():
return 1,2,3
f()
(1, 2, 3)
def foo(args1,argst):
print(args1)
print(argst)
foo("hello","if","you","love")
hello
if you love
def f():
return 1,2,3
f()
(1, 2, 3)