转载请注明出处:https://www.cnblogs.com/shapeL/p/9057152.html 1.map():遍历序列,对序列中每个元素进行操作,最终获取新的序列 print(list(map(str, [, , , , , , , , ])))输出结果:['1', '2', '3', '4', '5', '6', '7', '8', '9'] def square(x): result = list(map(square,[,,,,])) print(result)输出结果:[1…