1.函数非固定参数 *args *kwargs def test(*args): print (args) test(1,2,3,4,5) test(*[1,2,3,4,5]) #*args = *[1,2,3,4,5] args=tuple([1,2,3,4,5]) l = [1,2,3] test(*l) def test1(x,*args): print (x) print (args) test1(1,2,3,4,5,6,7) #**kwargs,把n个关键字参数,转换成字典的方式 de