Numpy-矩阵的运算
import numpy as nparr1 = np.array([[2,2,2], [4,4,4]])arr2 = np.array([[9,9,9], [1,1,1]])print(arr1)[[2 2 2] [4 4 4]]print(arr2)[[9 9 9] [1 1 1]]#矩阵加法:按位相加,相同位置的元素进行相加print(arr1 + arr2)[[11 11 11] [ 5 5 5]]