5 lines
93 B
Python
5 lines
93 B
Python
# 与map在一块使用
|
|
numbers = [1,2,3,4]
|
|
a= list[int](map(lambda x:x*2,numbers))
|
|
print(a)
|