1.函数复习 # map # l = [1,2,3,4,5] # print(list(map(str,l))) # reduce # l = [1,2,3,4,5] # from functools import reduce # print(reduce(lambda x,y:x+y,l,3)) #初始值是3. # filter # name=['ray_sb','ray'] # res=filter(lambda x:x.endswith('sb'),name) # # res=filte