def test1():
print('in the test1')

def test2():
print('in the test2')
return 1

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄