用while循环做上次做的小游戏
_years=1990
count = 0
while count<3:
years = int(input("请输入出生年份:"))
if years ==_years:
print('机智boy,对了')
break
elif years >_years:
print('大了')
else:
print('小了')
count+=1
times=3-count
print('剩下的尝试机会数:',times)
else:
print('密码错误次数过多,明天再试')