python 函数参数为*和**的作用与区别

def function(*args):print(args) 中*的作用:表示此时参数为一个元祖。

def function(**args):print(args)中**的作用:表示此时参数为一个字典。

如:

原文地址:https://www.cnblogs.com/FuLiuWei/p/FuliuweiPythonc.html