程序变聪明了

https://crossincode.com/vip/homework/34/

import random

Number = random.randint(1, 100)
bingo = False

while bingo == False:
Guess = int(input())
if Guess > Number:
print("你输入的数是", Guess)
print("猜大了")
elif Guess < Number:
print("你输入的数是", Guess)
print("猜对了")
else:
print("你输入的数是", Guess)
print("猜对了")
bingo == True
break

你可能感兴趣的:(程序变聪明了)