python中randint函数的用法是什么?

python中randint函数的用法是什么?,第1张

python中randint函数的用法是什么?

python中randint函数的用法是什么?

python中randint函数的用法是:

官方文档中给出的用法是:numpy.random.randint(low,high=None,size=None,dtype)

生成在半开半闭区间[low,high)上离散均匀分布的整数值;若high=None,则取值区间变为[0,low)

用法及实现

high=None的情形

high≠None

推荐教程:《python视频教程》

以上就是python中randint函数的用法是什么?的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/683721.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-20
下一篇 2022-04-20

发表评论

登录后才能评论

评论列表(0条)

保存