变量keep_guessing为什么不能用这个词
import randomrandom_num=random . randint(0,10)
print(random_num)
count = 0
while count < 3:
guess_num = int(input("请输入您猜的数字:"))
if random_num > guess_num:
print("小了,小了,请输入大点。")
elif random_num < guess_num:
print("大了,大了,请输入小点。")
else:
print("正确")
break
count += 1
if count == 3:
Keep_guessing= input("还想玩,请输入y:")
if keep_guessing == 'y':
count =0
keep_guessing 为什么不能做为变量 基础没学好,K and k,FUCK
{:10_277:} 修改成K是不是就好了{:10_257:}
import random
random_num=random . randint(0,10)
print(random_num)
count = 0
while count < 3:
guess_num = int(input("请输入您猜的数字:"))
if random_num > guess_num:
print("小了,小了,请输入大点。")
elif random_num < guess_num:
print("大了,大了,请输入小点。")
else:
print("正确")
break
count += 1
if count == 3:
keep_guessing= input("还想玩,请输入y:")
if keep_guessing == 'y':
count =0 名字只有七个字 发表于 2021-5-9 11:54
import random
random_num=random . randint(0,10)
print(random_num)
你运行这个
页:
[1]