python中如何消除list中的冗余项 做到不难,代码简洁漂亮,效率又高就不容易了 介绍一种最简单高效的 {}.fromkeys(list).keys() 其他方法参见: http://www.peterbe.com/plog/uniqifiers-benchmark/