Warum mutiert Python / Numpy + = das ursprüngliche Array?
import numpy as np
W = np.array([0,1,2])
W1 = W
W1 += np.array([2,3,4])
print W
W = np.array([0,1,2])
W1 = W
W1 = W1 + np.array([2,3,4])
print W
Der obere Code wird mutierenW
, aber der untere Code wird nicht mutierenW
. Warum