标签:
print("---------guess number--------") temp = input("please input you number :") guess = int(temp) num = 1 number = int(num) while (guess !=8) and (number != 3): temp = input("erro,please input you number :")
if guess == 8: print("ok") else: if guess > 8: print("litter big") number = number + 1 else: if guess < 8: print("a litter") number = number + 1 print("game over!")
标签:
原文地址:http://www.cnblogs.com/changbo/p/5449544.html