Numpy矩阵操作 矩阵大小,矩阵乘法,转置,逆矩阵, 1.引入库 import numpy as np 2.获取矩阵大小 >>> a=[[1,2,3],[4,5,6]] >>> a=np.matrix