# map可以用于对可遍历结构的每个元素执行同样的操作,批量操作: map(lambda x: x**2, [1, 2, 3, 4]) # [1, 4, 9, 16] map(lambda x, y: x + y, [1, 2, 3], [5, 6, 7]) # [6, 8, 10] # 在Python3种输出上述结果 result1=list(map(lambda x: x**2, [1, 2, 3, 4]) ) # [1, 4, 9, 16] print(result1) result2(m…