函数动态参数的结合

就是将元祖和字典这两种参数结合起来:

def f1(*a,**a):

       print(a,type(a))

       print(aa,type(aa))

f1(11,22,33,k1=123,k2=456)

posted @ 2017-02-19 12:03  关泉珍  阅读(48)  评论(0)    收藏  举报