print ("*******數字游戲*********")
temp = input ("猜猜小紅現在心里想的是什么數字呢?")
guess = int(temp)
while guess !=8:
temp = input ("猜錯啦,請重新輸入")
guess = int(temp)
if guess == 8:
print("猜對啦,你是我心里的小蛔蟲嗎")
else:
if guess > 8:
print("哎呀,太大啦")
else:
print ("啊啊,太小了")
print ("游戲結束,不玩啦")
鏈接 http://www.rkpass.cn/u.jsp?u=316407