编辑代码
Python代码
3.11.0
2.7.17
运行
num=int(
input
(
"输入一个数字"
))
if
(num%
2
)==
0
print
(
"{0}是偶数"
.
format
(num))
else
:
print
(
"{0}是奇数"
.
format
(num))