python map() 函数式编程的内建函数
a = map((lambda x: x+2), [0, 1, 2, 3, 4, 5])
print(a)
list(a)
output:
<map object at 0x000000000515B848>
[2, 3, 4, 5, 6, 7]
python map() 函数式编程的内建函数
a = map((lambda x: x+2), [0, 1, 2, 3, 4, 5])
print(a)
list(a)
output:
<map object at 0x000000000515B848>
[2, 3, 4, 5, 6, 7]