def output(*a , s=","): return s.join(a) l = {"10", "20", "30"} print(output(*l,s="/"))
def output(a, b, c): print(a) print(b) print(c) l = {"a":"10", "b":"20", "c":"30"} output(**l)
參考資料:
http://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists