Python求解錯,不知道哪裏有問題。。。

import random
secert = random.randint(1,10)
temp = input("不妨猜一下通哥心裏想的是哪個數字:")
guess = int(temp)


while guess != secert:
if guess == secert:
pass
else:
if guess > secert:
print("哎,大了大了~~~")
else:
print("嘿,小了小了~~~")
temp = input("")
guess = int(temp)
if guess == secert:
        print("通哥其實心裏想的是你!")
        print("臥槽,這你都能猜中,你是通哥肚子裏的蛔蟲嗎?!")
print(" ")
print("本寶寶走啦,不玩啦*^*")
發佈了24 篇原創文章 · 獲贊 28 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章