从列表中删除项目-在迭代过程中-这个成语有什么问题?
letters=['a','b','c','d','e','f','g','h','i','j','k','l']for i in letters: letters.remove(i)print letters
IDLE 2.6.2 >>> ================================ RESTART ================================>>> ['b', 'd', 'f', 'h', 'j', 'l']>>>
qq_花开花谢_0
智慧大石
相关分类