用户:
成熟的训练师uJDb查看:0 回复:1 评论:0 创建时间:2020-10-04T20:47:49
【作品展示】

【作品介绍】
哈哈哈哈哈哈哈哈哈哈
【作品源代码】
import random
import random as t
a = random.randint(1, 10)
c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
t = c[(a - 1)]
b = 1
while (b <= 3):
f = input((('第' + str(b)) + '次'))
if (t == f):
print('你答对啦!!')
break
else:
if (t > f):
print('猜的前了')
else:
print('猜的后了')
b = (b + 1)
try:
print(('你没机会了!!!正确的字母是' + t))
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn