import numpy as np a = np.array([1, 2, 3, 4, 5]) b = np.array([3, 6, 8, 9, 10]) print np.sum(a * b). 125. 3 Matrix algebra approach.
確定! 回上一頁