会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AdjWang
Perfection is achieved not when there is nothing more to add, but rather when there is nothing more to take away. -- Antoine de Saint-Exupéry
博客园
首页
新随笔
联系
订阅
管理
2020年10月31日
random.choices 函数时间复杂度
摘要: random.choices 函数 python 官方标准库 random 中,有个函数 random.choices(population, weights=None, *, cum_weights=None, k=1),比起常用的 random.choice(seq),这个函数可以指定概率权重和
阅读全文
posted @ 2020-10-31 22:34 AdjWang
阅读(1803)
评论(0)
推荐(0)
编辑
公告