会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CAMILIA的学习日记
博客园
首页
新随笔
联系
订阅
管理
2022年6月24日
[python]-random模块-手动随机数
摘要: random模块通常用来生成随机数,结合time模块生成随机数的代码: ``` import time import random random.seed(time.time()) x = random.randint(0,9) # x是[0,9]的整数,注意是闭区间 ``` random.samp
阅读全文
posted @ 2022-06-24 15:30 CAMILIA
阅读(61)
评论(0)
推荐(0)
公告