谈谈函数式编程与推导式编程
lambda:返回函数f = lambda x,y:x+yf(3,5) #=> 8推导式:out = [x**2 for x in range(4)]#也可多添加[(x,y) for x in range(4) for yin rannge(x)]#还可以增加判断语句[(x,y) for x in range(4) for y in range(x) if y<2]返回列表[1,4,9]map:lis = range(5)out = map(lambda...