l = ['c', 'a', 't', 'd', 'o', 'g', 'r', 'a', ...[c for i, c in enumerate(l) if c not in l[:i]]或 [c for c in set(l)],不过 set 不保证顺序,若要顺序一致可以参考 OrderedSet
http://bit.ly/1C7ns1Ot = []; [c for w in l for c in w if c not in t \and t.extend(c)]上面这行是当 l = ['cat', 'dog', 'rabbit'] 时。