猜测黑姑娘的年龄
black_age = 25
user_age = int(input("猜一下黑姑娘的年龄:"))
while (user_age != 25):
if user_age < black_age:
print("猜的太小了,往大了猜")
user_age = int(input("猜一下黑姑娘的年龄:"))
elif user_age > black_age:
print("猜的太大了,黑姑娘有那么老么?往小了猜试试。。。")
user_age = int(input("猜一下黑姑娘的年龄:"))
print("恭喜你,猜对了!")