摘要: def test(a,b): print(a,b) li = [1,2] test(*li) #一个*表示可将list中的元素对应传到函数中 dict = {'a':'xqq','b':'xyy'} test(**dict) #两个*表示可将字典中的元素对应传到函数中 阅读全文
posted @ 2018-02-01 15:37 艾谁谁 阅读(56) 评论(0) 推荐(0)