用户:
张赵桓1号查看:0 回复:0 评论:0 创建时间:2022-05-11T13:02:17
【作品展示】

【作品介绍】
求帮助
【作品源代码】
import random
import random as r
import time
ent = 0
gue = int(input('请输入你想猜的数'))
参数 = random.randint(0, 100)
while True:
if (gue < 参数):
print('小了')
gue = int(input('请输入你想猜的数'))
if (gue > 参数):
print('大了')
gue = int(input('请输入你想猜的数'))
else:
print('恭喜,你对了!')
ent = input('想再来吗?按下"Z"并且再按ENTER')
if (ent == 'z'):
gue = int(input('请输入你想猜的数'))
参数 = random.randint(0, 100)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn