会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
MarkaiElsa
博客园
首页
新随笔
联系
管理
订阅
2019年1月29日
python开发之路---第二模块--随机模块
摘要: import random import string print(random.randint(1,100)) #随机从1-100取值,包含100 print(random.randrange(1,100)) #随机从1-100取值,不包含100 print(random.random()) # 随机浮点数 print(random.choice('abc123!@#')) ## 返回...
阅读全文
posted @ 2019-01-29 14:59 MarkaiElsa
阅读(159)
评论(0)
推荐(0)
编辑
公告