Python Sum répertorie l'élément sage

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]
Powerful Penguin