Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Python列表作为函数参数进行析构函数_Python_Arrays_Function_Arguments - Fatal编程技术网

将Python列表作为函数参数进行析构函数

将Python列表作为函数参数进行析构函数,python,arrays,function,arguments,Python,Arrays,Function,Arguments,如何像javascript一样将数组分解为参数列表 def foo(arg0,arg1):通过 条形图=[32,44] foo(…bar) 这叫做参数解包。使用*args格式 foo(*bar) 更多信息:

如何像javascript一样将数组分解为参数列表

def foo(arg0,arg1):通过
条形图=[32,44]
foo(…bar)

这叫做参数解包。使用
*args
格式

foo(*bar)
更多信息: