def test(a,b):
print(a,b)
li = [1,2]
test(*li) #一个*表示可将list中的元素对应传到函数中
dict = {'a':'xqq','b':'xyy'}
test(**dict) #两个*表示可将字典中的元素对应传到函数中