''' 猜年龄,三次判断 '''
guess_age=32 #三次判断 num = 0 while num<3: age = int(input("请输入年龄")) # 请输入年龄 if guess_age > age: print("你猜小了") elif guess_age < age: print("你猜大了") else: print("恭喜你回答正确") num += 1