在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;有更好的參數化功能。 –