十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
count = 0
while True:
count = count +1
print(count)
age = 23
count = 0
while count < 3:
age_guess = int(input("请输入数字:"))
if age_guess == age :
print("你猜对了啦")
break;
elif age_guess > age :
print("你猜大了")
else:
print("你猜小了")
count = count+1
print("游戏结束")
age = 23
count = 0
while count < 3:
age_guess = int(input("请输入数字:"))
if age_guess == age :
print("你猜对了啦")
break;
elif age_guess > age :
print("你猜大了")
else:
print("你猜小了")
count = count+1
else: #当while判断不成立时,运行else语句
print("你输入的次数太多啦")
print("游戏结束")