Python中的shape和reshape()

参考博文:https://blog.csdn.net/qq_28618765/article/details/78083895 shape是查看数据有多少行多少列 reshape()是数组array中的方法,做用是将数据从新组织web shape import numpy as np a = np.array([1,2,3,4,5,6,7,8]) #一维数组 print(a.shape[0])
相关文章
相关标签/搜索