创建一个3X3的矩阵并对其赋值: 1 2 3 x=numpy.array([[1,2,3],[4,5,6],[7,8,9]]) printx printx.shape 运行结果: [[123] [456] [789]] (3L,3L) [Finishedin0.2s]