标签:python 命名参数 soft print 变量 格式 传递 pre 默认
def func(x,y): print x+y
def func(x,y,z): print x+y+z t = (1,2) func(1,*t)
dic = {‘x‘:2,‘y‘:3,‘z‘:10} func(**dic)
def func(x,*args,**kwargs):
def func(x,*args,**kwargs): print x print args print kwargs func(1,2,a=123) 1 (2,) {‘a‘: 123}
标签:python 命名参数 soft print 变量 格式 传递 pre 默认
原文地址:http://www.cnblogs.com/dachenzi/p/6095655.html