$*arg,*args$
*arg表示可变长参数,作为形参时,如下
def function(*args,**kargs): for i in args: print(i) for i in kargs: print(i,":",kargs[i]) function(4,5,6,a=1,b=2) 4 5 6 a:1 b:2
[...]和[:]的效果一样