摘要: 1. np.newaxis 的实用 >> x = np.arange(3) >> x array([0, 1, 2]) >> x.shape (3, ) >> x[:, np.newaxis] array([[0], [1], [2]]) 将一维的数组变成二维的,并且np.newaxis 放在y位置 阅读全文
posted @ 2020-04-28 05:27 CrescentTing 阅读(454) 评论(0) 推荐(0)