标签:-- st3 test ret print jason *args nbsp return
def test1():
print(‘in the test1‘)
def test2():
print(‘in the test2‘)
return 1
def test3():
print(‘in the test3‘)
return 3,‘hello‘,{‘name‘:‘Jason‘},[‘1‘,‘2‘]
x = test1()
y = test2()
z = test3()
print(x)
print(y)
print(z)
-------------------函数传参--------------------
def test(x,y):
print(x)
print(y)
# test(1,2)
test(y=99,x=1)
--------------------参数组---------------------
def test(*args):
标签:-- st3 test ret print jason *args nbsp return
原文地址:https://www.cnblogs.com/jasonLiu2018/p/10733363.html