2019-01-26元组
2019-01-26 本文已影响0人
a35f9c03b68e
def foo(args1,argst):
print(args1)
print(argst)
foo("hello","if","you","love")
hello
if you love
*argst是一个长短可变的参数,用元组表示
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)