基本用法 map(函数,可迭代的数据) ← 主遍历浴火重生. def square(x): return x ** 2 map(square, [1,2,3,4,5]) # [1, 4, 9, 16, 25] # lambda写法 map(lambda x: x ...
確定! 回上一頁