def f(x):
return x
def ff(x, y, f):
return f(x) + f(y)
print map(ff, [1, 2], [3, 4], [f, f])
def f(x):
return x
def ff(x, y, f):
return f(x) + f(y)
print map(ff, [1, 2], [3, 4], [f, f])
转载于:https://my.oschina.net/Dooker/blog/701146