python numpy矩阵信息,shape,size,dtype时间:2022-03-10 21:22:11[python] view plain copy print? import numpy as np from numpy import random matrix1 = random.random(size=(2,4)) #矩阵每维的大小 print matrix1.shape [python] view plain copy print? #矩阵所有数据的个数 print matrix1.size [python] view plain copy print? #矩阵每个数据的类型 print matrix1.dtype