2019年6月3日
摘要: 以上三个函数,主要区别在于能够拓展维度上和重复方式: 2. np.repeat()能够将多维flatten一维后,进行个体重复: 1 b = np.array([[1,2,3],[4,5,6]]) 2 np.repeat(b,3) 3 # out 4 #array([1, 1, 1, 2, 2, 2 阅读全文
posted @ 2019-06-03 09:28 无邪丫丫 阅读(438) 评论(0) 推荐(0) 编辑