a和b是两个矩阵: a.dot(b) 与 np.dot(a,b)相同, 也就是说想要矩阵a乘以矩阵b,写作a.dot(b) 或者np.dot(a,b)都行。 参考引用了:https://blog.csdn.net/weixin_39797264/article/details/111727851 侵删。