map

map函数和reduce函数?

python map(lambda x: x x, [1, 2, 3, 4]) # 使用 lambda [1, 4, 9, 16] reduce(lambda x, y: x y, [1, 2, 3, 4]) # 相当于 ((1 2)...