numpy的shape获取矩阵的维度 其他 2021-03-24 09:32 0 阅读 import numpy as np a=np.array([[1,2,3,4],[1,2,3,4]]) print(a.shape[0]) #2 print(a.shape[1]) #4 猜你喜欢