Files
python/pythonProject/内置函数/lambda/2.py
T

7 lines
130 B
Python
Raw Normal View History

2026-05-18 17:29:42 +08:00
# 与map在一块使用
numbers = [1,2,3,4]
2026-10-08 15:18:13 +08:00
# a= list[int](map(lambda x:x*2,numbers))
# print(a)
add = lambda x:x*2
print(add(2))