NumPy函數庫的使用

shape()html   shape是numpy函數庫中方法,用於查看矩陣或者數組的維數數組   shape(array),如矩陣爲m行n列,則返回(m,n)函數   shape[0],返回矩陣的行數m,參數爲1的話,返回列數npost   tile()htm   tile(A,(m,n))blog   表示將數組A做爲元素構造出m行n列的數組class   sum()numpy   array
相關文章
相關標籤/搜索