Files
python/pythonProject/内置函数/lambda/2.py
T
2026-05-18 17:29:42 +08:00

4 lines
87 B
Python

# 与map在一块使用
numbers = [1,2,3,4]
a= list(map(lambda x:x*2,numbers))
print(a)