np_points= np.ones((3,4))
temp_np_points= np_points
print(temp_np_points)
print("=============")
#其实还是指向原本的内存,只是获取不同的内容,没有改变内存内容,np_points不会变
temp_np_points= temp_np_points[ : ,1: ]
print(temp_np_points)
print("=============")
#改变内存的内容,temp_np_points= np_points,这2个都会变
temp_np_points[0][0] = '90'
print(temp_np_points)
print("=============")
print(np_points)
[[1. 1. 1. 1.]
[1. 1. 1. 1.]
[1. 1. 1. 1.]]
=============
[[1. 1. 1.]
[1. 1. 1.]
[1. 1. 1.]]
=============
[[90. 1. 1.]
[ 1. 1. 1.]
[ 1. 1. 1.]]
=============
[[ 1. 90. 1. 1.]
[ 1. 1. 1. 1.]
[ 1. 1. 1. 1.]]