day01
數(shù)組的維度-從幾個方向上看
數(shù)組創(chuàng)建 array arange
ndim-查看數(shù)組軸的個數(shù)
shape-查看數(shù)組的形狀
dtype-描述數(shù)組中元素的數(shù)據(jù)類型
size-查看數(shù)組元素的個數(shù)
reshape-轉(zhuǎn)變數(shù)組的維度
flatten-展開數(shù)組中的所有元素
轉(zhuǎn)置數(shù)軸-加T/ranspose/swapacxes(1,0)
ones-創(chuàng)建全部是1的數(shù)組 np.ones(shape,dtype=None,order='C')
ones_like-按指定數(shù)組形狀創(chuàng)建都是1的數(shù)組 np.ones_like(a,dtype=float, order="c", subok=True)
full-創(chuàng)建指定值的數(shù)組 np.full(shape,fill_value,dtype=None,order='C')
full_like-按指定數(shù)組形狀創(chuàng)建指定值的數(shù)組 np.full_like(a,fill_value=123,dtype=None)