python 版本 3.5 #Author by Andy#_*_ coding:utf-8 _*_def func(x,y=2): print('我是形参%s'%x) print('我是默认参y--->%s'%y)func(1)#1是实参,x为形参,y为默认参数#若实参数目不固定def func1(*args): print(args)func1([1,2.3,4,5])#([1, 2.3, 4, 5],)func1(*[1,2,3,4,5])#(1, 2, 3, 4, 5)#实参为字典 **