import random computer = random.randint(1,100) while True: you =int(input('請輸入你要選擇的數字')) if you == computer: