numpy中生成随机矩阵并打印出矩阵的shape from numpy import * c=zeros((4,5)) print c.shape print numpy.random.random((2,3))