list去重后不改变排序

sorted(set(s), key=s.index)

原文地址:https://www.cnblogs.com/swordsman180309/p/12360657.html