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
3edc0b7b9f674761e51887503c5375a53314c7d6
python
/
pythonProject
/
流程语句
/
if
/
选择分支结构1.py
T
6 lines
121 B
Python
Raw
Normal View
History
Unescape
Escape
no message
2023-12-24 22:16:24 +08:00
a
=
eval
(
input
(
"请输入您的年龄:"
))
if
a
>=
18
:
print
(
"您是大人"
)
if
a
<
18
:
print
(
"你是小孩子!"
)
Reference in New Issue
Copy Permalink