numpy
2019-03-18 本文已影响0人
Tu_jc
一、创建ndarry
![](https://img.haomeiwen.com/i9192162/6e65e92aa97ef5d1.jpg)
obj.astype(dtype):转化其他detype
obj.reshape(a,b):转化为a*b形式
![](https://img.haomeiwen.com/i9192162/f806db37f466dc56.jpg)
np.where(cond,x,y):if cond: re=x else re=y
![](https://img.haomeiwen.com/i9192162/314088b966d9b25a.jpg)
一、创建ndarry
obj.astype(dtype):转化其他detype
obj.reshape(a,b):转化为a*b形式
np.where(cond,x,y):if cond: re=x else re=y