import random
secret = random.randint(1,10)

print("____________________猜数字________________________")

temp = input("猜一猜我心里想的是哪个1到10的数字:")
gue = int(temp)

while gue != secret:

    temp = input("猜错了,请重新输入:")
    gue = int(temp)

    if gue == secret:
        print("恭喜你猜对了")
    else:
        if gue > secret:
            print("猜大了")
        else:
            print("猜小了")
print("游戏结束")