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):

 

posted on 2019-04-18 23:43  潇潇六月雨  阅读(108)  评论(0)    收藏  举报