会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RootEvils
博客园
首页
新随笔
联系
订阅
管理
2018年8月20日
random、os、时间模块
摘要: 一.random 模块 1.随机小数 random.random() #产生大于0且小于1之间的小数 random.uniform(1,3) #产生1到3之间的随机小数 2.随机整数 random.randint (1,5) # [1 , 5 ] #大于等于1且小于等于5之间的整数 random.r
阅读全文
posted @ 2018-08-20 21:31 RootEvils
阅读(233)
评论(0)
推荐(0)
公告