Sep-22-2018, 07:10 AM
Sep-22-2018, 08:08 AM
In general,
func(*param)means that
param
is a sequence of python objects (eg a list, tuple, ...) and these objects are used as parameters in the call to function func
. For exampleparam = [1, 2, 3] func(*param)has the same effect as calling
func(1, 2, 3)Calling
func(*param)
is different from calling func(param)
, because the latter calls func
with a single list argument, namelyfunc([1, 2, 3])