码迷,mamicode.com
首页 > 其他好文 > 详细

Oneday-任性玩

时间:2018-05-02 18:06:30      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:big   confirm   EDA   bre   ant   guess   else   oldboy   +=   

age_oldboy =56
count = 0
while count<3 :
guess_age = int(input("guess age:"))
if age_oldboy==guess_age:
print("yes,you got it!")
break
elif guess_age >age_oldboy:
print("think smaller")
else :
print("think bigger")
count +=1
if count ==3:
countine_confirm = input("do you want to keep guessing..?")
if countine_confirm != ‘n‘:
count = 0
else:
print("太遗憾了,希望下次再来!")

Oneday-任性玩

标签:big   confirm   EDA   bre   ant   guess   else   oldboy   +=   

原文地址:https://www.cnblogs.com/smile-donggua/p/8981551.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!