# 函数 传参 def foo1(name,address): print(name,address) # 直接传入参数 foo1('fqs',"huilongguan") # 关键字传入参数 foo1(name='doudou',address='huilongguan') ''' fqs huilongguan doudou huilongguan '''
# 函数 返回值 def foo1(x): return x*x,x*3 result1,result2=foo1(2) print(result1,result2) ''' 4 6 '''
标签:传参,函数,address,返回值,huilongguan,foo1,name From: https://www.cnblogs.com/haha1988/p/17528064.html