我想在Python中编写一个返回n个函数乘法的函数(f1(x) * f2(x) * f3(x) * ... * fn(x)).
(f1(x) * f2(x) * f3(x) * ... * fn(x))
我想的是:
def mult_func(*args): return lambda x: args(0)(x) * args(1)(x) ...
但我不确切知道如何循环nargs中的函数.
n
谢谢.
python function
function ×1
python ×1