python 函数参数
摘要:
2 3 4 5 def foo(x,*args,**kwargs): print(x) print(args) print(kwargs) foo(1,2,3,4,y=1,a=2,b=3,c=4)#将1传给了x,将2,3,4以元组方式传给了args,y=1,a=2,b=3,c=4以字典的方式给了kw 阅读全文
posted @ 2019-02-15 20:36 冬天里暖阳 阅读(82) 评论(0) 推荐(0) 编辑
posted @ 2019-02-15 20:36 冬天里暖阳 阅读(82) 评论(0) 推荐(0) 编辑