解決方式: # -*- coding: cp936 -*- list1=[1,2,3,4,5] list2=list1[:] #複製一個才能有想像中的效果 for i in list1: print i list2.remove(i)
確定! 回上一頁