This website requires JavaScript.
Explore
Help
Register
Sign In
chenxuan
/
python
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
6c976fc8bb113b4f1aab6fd65f76adebca56bc1d
python
/
pythonProject
/
内置函数
/
lambda
/
3.py
T
3 lines
97 B
Python
Raw
Normal View
History
Unescape
Escape
no message
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
)
Reference in New Issue
Copy Permalink