import random answer = random.randint(1, 100) for i in range(1, 8): guess = int(input("请输入你猜的数字:")) print(guess)