#coding=utf-8 #map 函数 func = lambda x:x+2 result = map(func,[1,2,3,4,5]) print(list(result)) #filter 过滤函数 #reduce函数