np.apply_along_axis(sum, 0, b) array([ 9, 12]) >>>. 那麼三維陣列呢? ndim 當然就是3,至於 shape 、軸的話,可以先看看下圖:. NumPy 陣列維度、形狀與軸.
確定! 回上一頁