标签: python list
numbers=[0,0,1,2] for i in numbers: if i==0: numbers.remove(i) for i in numbers: print i
输出显示numbers=[0,1,2]
numbers=[0,1,2]
为什么数字中有'0'?