摘要: // 函数定义时参数数量不定 1 def f(*args,**myvars): 2 print args 3 print myvars.items() 4 f(1,2,name = "Peng",nation = "China") 输出: 1 (1, 2) 2 [('name', 'Peng'), 阅读全文
posted @ 2018-02-25 06:20 鹏_VFX 阅读(383) 评论(0) 推荐(0) 编辑