map #函数需要⼀个参数 m1 = map(lambda x:x*x,[1,2,3]) print(list(m1)) #函数需要两个参数 m2 = map(lambda x,y:x+y,[1,2,3],[4,5,6]) print(list(m2)) def f1(x,y): return (x,y) l1 = [0,1,2,3,4,5,6] l2 = ['Sun','M','T','W','T','F','S'] l3 = map(f1,l1,l2) print(list(l3)) 输出…