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("本宝宝走啦,不玩啦*^*")

猜你喜欢

转载自blog.csdn.net/weixin_34981646/article/details/80717371