array([[1,2,3],[4,5,6]]) np.size(a),返回值为6 np.size(a,1),返回值为3. shape ():得到矩阵每维的大小 np. shape (a),返回值为(2,3). 另外要注意的 ...
確定! 回上一頁