列表去重保留最后面的元素 PYTHON Python list 2018/02/27 1234567new_list = []for i in old_list: if i not in new_list: new_list.append(i) else: new_list.remove(i) new_list.append(i)