myage_zhang = 32标签:count,myage,zhang,Python,elif,print,countine,自学 From: https://www.cnblogs.com/xiansenzhang/p/17183534.html
count = 0
while count < 3:
myage = int(input("请输入你的年龄:"))
if myage == myage_zhang:
print("恭喜你,回答正确!")
break
elif myage < myage_zhang:
print("请往大了猜猜!")
elif myage > myage_zhang:
print("请往小了猜猜!")
count +=1
if count == 3:
countine = input("是否继续?")
if countine != 'n':
count = 0
#else:
#print("已经输入错误3次")