本节矩阵线性代数有很多内容,这里重点演示计算矩阵的行列式.求逆矩阵和矩阵的乘法. 一.计算矩阵行列式[det] import numpy as np from numpy.linalg import det a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) c = det(a) print(c) #行列式为0,不存在逆矩阵 b = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 19]]) c = det(b) prin