python中的不定长参数

def(a,b,*args):

    pass

 

其中args为不定长参数,只能放在参数最后面

 

posted @ 2017-12-18 20:44  leeQQQ  阅读(356)  评论(0编辑  收藏  举报