在python中是否有等效于R的do.call
?相当于Python中的“do.call”
do.call(what = 'sum', args = list(1:10)) #[1] 55
do.call(what = 'mean', args = list(1:10)) #[1] 5.5
?do.call
# Description
# do.call constructs and executes a function call from a name or a function and a list of arguments to be passed to it.
接下来的问题是:这是个好主意吗? - 不,不,不。 –
@KonradRudolph:nope;有更好的参数化功能。 –