会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
做梦当财神
首页
管理
2019年4月30日
np.random.shuffle(x)与np.random.permutation(x)
摘要: 将数组打乱随机排列 两种方法: np.random.shuffle(x):在原数组上进行,改变自身序列,无返回值。 np.random.permutation(x):不在原数组上进行,返回新的数组,不改变自身数组。 1. np.random.shuffle(x) (1)、一维数组 import nu
阅读全文
posted @ 2019-04-30 10:32 做梦当财神
阅读(10252)
评论(1)
推荐(1)
公告