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

3 lines
97 B
Python
Raw Normal View History

2026-05-18 17:29:42 +08:00
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
a= list(filter(lambda x: x % 2 == 0, numbers))
print(a)