python 从控制台输入一个整数,判断是否是偶数

num = int(input())

if num % 2 == 0:
print("是偶数")
else:
print("是奇数")

猜你喜欢

转载自www.cnblogs.com/pygo/p/12100559.html