S
s99999999s2003
hi
i have a dictionary defined as
execfunc = { 'key1' : func1 }
to call func1, i simply have to write execfunc[key1] .
but if i have several arguments to func1 , like
execfunc = { 'key1' : func1(**args) }
how can i execute func1 with variable args?
using eval or exec?
thanks
i have a dictionary defined as
execfunc = { 'key1' : func1 }
to call func1, i simply have to write execfunc[key1] .
but if i have several arguments to func1 , like
execfunc = { 'key1' : func1(**args) }
how can i execute func1 with variable args?
using eval or exec?
thanks