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
39444d26c8a958e85a6900f139512c2a95650b55
python
/
pythonProject
/
流程语句
/
if
/
选择分支结构3.py
T
5 lines
98 B
Python
Raw
Normal View
History
Unescape
Escape
no message
2023-12-24 22:16:24 +08:00
n
=
eval
(
input
(
"请输入数值"
))
if
n
%
2
==
0
:
print
(
"偶数"
)
if
not
n
%
2
==
0
:
print
(
"奇数"
)
Reference in New Issue
Copy Permalink