矩阵相乘
import numpy as np
arr1 = np.array(((1,4),(2,5),(3,2)))
arr2 = np.array((3,4))
print('第一个矩阵:\n',arr1)
print('第二个矩阵:\n',arr2)
print('结果输出:\n',arr1*arr2)
赞 (0)
import numpy as np
arr1 = np.array(((1,4),(2,5),(3,2)))
arr2 = np.array((3,4))
print('第一个矩阵:\n',arr1)
print('第二个矩阵:\n',arr2)
print('结果输出:\n',arr1*arr2)