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
d81e06d34cec4a5e92e7698aea50392e1a23dc23
python
/
pythonProject
/
内置函数
/
lambda
/
2.py
T
4 lines
87 B
Python
Raw
Normal View
History
Unescape
Escape
no message
2026-05-18 17:29:42 +08:00
# 与map在一块使用
numbers
=
[
1
,
2
,
3
,
4
]
a
=
list
(
map
(
lambda
x
:
x
*
2
,
numbers
))
print
(
a
)
Reference in New Issue
Copy Permalink