list1 = ['a','c','c','c','d','f']
for i in list1:
if i == 'c':
list1.remove(i)
print list1
运行结果:['a', 'c', 'd', 'f']
list1 = ['a','c','c','c','d','f']
for i in list1:
if i == 'c':
list1.remove(i)
print list1
运行结果:['a', 'c', 'd', 'f']