1.最简单的if else 使用(同级)

age = 33

guess = int(input("请猜一下我的年龄:"))

if age == guess:
    print("你猜对了,很棒")
else:
    print("你猜错了")

print("游戏结束!!!!")

2.elif 语句,多层级判断条件

score = 99
guess = int(input("请输入我的成绩:"))
if score == guess:
    print('你猜对了!!!!')
elif score > guess:
    print("你请小了!!!!")
else:
    print("你猜大了!!!")
print("游戏结束!!!")