sr = [12,13,4]
thre = 1
kaju = []
for p in range(len(sr)):
sr[p] -= thre
kaju.append(sr)
print sr
print kaju
結果出來爲:不同的輸出,用於在python同樣的事情
[11, 13, 4]
[11, 12, 4]
[11, 12, 3]
[[11, 12, 3], [11, 12, 3], [11, 12, 3]
我不知道爲什麼SR和嘉樹不相同