作用相同的情况 在若两个array的维度均为两维的情况下,两个函数的结果是相同的,例如: a = np.array([i for i in range(6)]).reshape([2,3]) b = np.array([i for i in range(6)]).reshape([3,2]) """ a [[0 1 2] [3 4 5]] b [[0 1] [2 3] [4 5]] """ >>> np.dot(a,b) array([[10, 13], [28, 40]]) >>> np.matmul(a,b) array([[10