会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
兰大仙儿
博客园
首页
新随笔
联系
订阅
管理
2019年11月24日
Python模块之random模块的使用
摘要: import randomimport string# 随机选取1-49间的整数:print(random.randint(1,50))# 随机选取0到100间的偶数:print(random.randrange(0, 101, 2))# 随机浮点数:print(random.random())pr
阅读全文
posted @ 2019-11-24 21:01 兰大仙儿
阅读(377)
评论(0)
推荐(0)
编辑
公告