03 2022 档案
python 中的list赋值坑
摘要:import numpy as np x = [1,2,3,4,5,6] x = np.array(x) y = x y[0] = 100 print(x) z = np.array(x) z[:] = x[:] z[0] = 1 print(x) [100 2 3 4 5 6][100 2 3 4
阅读全文
浙公网安备 33010602011771号