用户:Herobrine__查看:3 回复:1 评论:3 创建时间:2020-05-11T15:57:45
【作品展示】

【作品介绍】
可以随机选数
【作品源代码】
import random
x = int(input('需要随机选几个数?'))
y = int(input('其中最小的数?'))
z = int(input('其中最大的数?'))
print(y)
try:
for i in range(x):
print(random.randint(y, z))
except :
print('格式出错')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn