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

guess_age

时间:2018-05-13 13:33:38      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:lse   int   over   span   count   style   sha   color   pre   

age_shanshan = 18
count = 3
num = 0
while num < count:
age = int(input("age:"))
if age == age_shanshan:
print("good")
break
else:
print("不对")
num += 1
if num == 3:
choice = input("是否还玩,继续输入Y或者y")
if choice == ‘y‘ or choice == ‘Y‘:
num = 0
print("over")

guess_age

标签:lse   int   over   span   count   style   sha   color   pre   

原文地址:https://www.cnblogs.com/fmgao-technology/p/9031689.html

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