#第二种:使用遍历
list3 = [1,1,1,4,4,5,5,7,7,7,7,7,9,9]
list4=[]#创建空的列表
for i in list3:#使用for in遍历出列表
if not i in list4:#将遍历好的数字存储到控的列表中,因为使用了if not ,只有为空的的字符才会存里面,如果llist4里面已经有了,则不会存进去,这就起到了去除重复的效果!!
list4.append(i)#把i存入新的列表中
print(list4)

python去除列表中偶数_python去除列表中偶数