a = [2,4,0,8,9,10,100,0,9,7]
Filter a= filter(None, a)
Lambada a = filter(lambda x: x != 0, a)
for for b in a: if b == 0: a.remove(b)
python删除数组中元素
原文:http://www.cnblogs.com/james0/p/7993444.html