会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
爱敲代码的二百斤
博客园
首页
新随笔
联系
订阅
管理
2020年5月8日
Python标准库 - random模块
摘要: Python中的random模块用于生成随机数。 import random # 1.随机小数 print(random.random()) #大于0且小于1之间的随机小数 print(random.uniform(1,3)) #大于1且小于3的随机小数 # 2.随机整数 print(random.
阅读全文
posted @ 2020-05-08 15:48 爱敲代码的二百斤
阅读(229)
评论(0)
推荐(1)
编辑
公告