This website requires JavaScript.
Explore
Help
Register
Sign In
JackH
/
Learn
Watch
2
Star
0
Fork
0
You've already forked Learn
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
8041fa1438162876805f6bc889e9088eb1fb105a
Learn
/
day3
/
条件控制.py
7 lines
120 B
Python
Raw
Normal View
History
Unescape
Escape
提交
2025-07-03 21:46:54 +08:00
a
=
input
(
"
"
)
.
split
(
)
for
i
in
a
:
if
i
.
isdigit
(
)
:
提交
2025-07-03 21:51:19 +08:00
i
=
int
(
i
)
print
(
i
*
2
)
提交
2025-07-03 21:46:54 +08:00
else
:
提交
2025-07-03 21:56:29 +08:00
print
(
i
)
Reference in New Issue
Copy Permalink