📜  if else 语句奇数或偶数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:06.136000             🧑  作者: Mango

代码示例1
n=int(input())

if n%2==1:
    print("Weird")
elif n>=2 and n<=5:
    print("Not Weird")
elif n>=6 and n<=20:
    print("Weird")
else:
    print("Not Weird")