请问,为什么第二次循环,i变成了3,不应该是2吗?蒙圈中,请各位帮忙解答一下,感谢
收起
lst = [1, 2, 3, 4, 5] for i in lst: print(i) print(lst) lst.remove(i) print(lst)
报告相同问题?