filter 过滤 map 映射 reduce 累计运算 注意:filter和map是内建函数,不用导入就可以直接运用,但是reduce需要导入后才可以运用 from functools import reduce #aa = lambda x, y: x+y if x > 10 else x*y aa = lambda x,y:x+y a=[1,2,3,4,5,6] b=[2,3,4,5,6,7,9,11,45] #a1=list(filter(aa,a)) b1=list(map(aa,b,a)) #help(reduce) ss=reduce(aa,b,1) print(ss)