到这里我们可能认为 shape 为 (2,) 的数组是个行向量,先不过早下结论,往下验证. ... A = np.arange(4).reshape((2, 2)) A array([[0, 1], [2, 3]]).
確定! 回上一頁