list=[1, 2, 3, 4,'a','b','c','a',2, 3, 2,"b",'c','d','e','f','d']# s = set(list)#用set方法# print(s)s =[]for i in list: #列表去重 if i not in s: s.append(i)list = sprint(list)