用户:嘉豪E-M6查看:7 回复:2 评论:7 创建时间:2020-02-20T09:48:03
【作品展示】

【作品介绍】
猜数字 输入数字会给提示
【作品源代码】
import random
import requests
# 注释內容
hot = random.randint(1, 100)
啊啊啊 = int(input('猜猜吧,1到100里的任何一个'))
while (啊啊啊 != hot):
if (啊啊啊 < hot):
print('小了')
if (啊啊啊 > hot):
print('大了')
啊啊啊 = int(input('再来一次:'))
if (啊啊啊 == hot):
print(啊啊啊, '对了')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn