a =[1,2] for entry in a: entry = entry + 1 print a
列表不应该变异[2,3]吗?结果出来了[1,2].为什么?
[2,3]
[1,2]
python
python ×1