从列表中删除项目-在迭代过程中-这个成语有什么问题?
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']>>>
倚天杖
精慕HU
相关分类