1. 去重(去除重复的内容)
#方法一: a = [11,22,33,44,11,22,33,44] #定义一个空的变量 c = [] for i in a: if i not in c: c.append() #方法二: a = [11,22,33,44,11,22,33,44] #将其转换成集合 b = set(a) #再转换回来 c = list(b)