
基本属性
.ndim
查看数组是几维数组

.shape
查看数组维度

.size查询数组中元素个数

numpy.array的数据访问




reshape命令
对一个数组,不需要修改数据,但是修改它的维度,此时调用reshape命令


查看数组是几维数组
查看数组维度
对一个数组,不需要修改数据,但是修改它的维度,此时调用reshape命令
本文标题:NumPy.array 的基本操作
本文链接:https://www.haomeiwen.com/subject/qxyrxftx.html
网友评论