import numpy as np # 定义两个矩阵 matrix1 = np.array([[1, 2, 3], [4, 5, 6]]) matrix2 = np.array([[7, 8], [9, 10], [11, 12]]) # 使用NumPy的dot函数进行矩阵相乘 result_matrix = np.dot(matrix1, matrix2) # 打印相乘后的结果 print("矩阵1:") print(matrix1) print("...