The issue is not with append but rather the assignment (bindings) ... import numpy as np x = np.array([1, 2, 3, 4]) y = x y[0] = 8 print(x).
確定! 回上一頁