标签:代码 code got log break int count print while循环
# Author:liuzhongchang LIU_age = 27 count=0 while count<3: guess_age = int(input("guess age:")) if guess_age==LIU_age: print("yes,you got it.") break elif guess_age>LIU_age: print("think smaller...") else: print("think bigger...") count+=1 if count==3: countine_=input("do you want to keep guessing...?") if countine_!=‘n‘: count=0
标签:代码 code got log break int count print while循环
原文地址:http://www.cnblogs.com/liuzhongchang/p/7826387.html