📅  最后修改于: 2022-03-11 14:46:48.587000             🧑  作者: Mango
import numpy as np
vector1 = np.array([1, 2, 3])
vector2 = np.array([4, 5, 6])
#Doing the element-wise addition is now as trivial as:
sum_vector = vector1 + vector2
print(sum_vector)
# [5 7 9]