浅层复制,那个b4虽然定义了,应该没有什么作用吧
import numpy as np a = np.array([1, 2, 3, 4, 5]) b = a[1:] b[2] = 10 print(a) print(b)