将列表的元素去重

a=[1,2,3,1,3]

print list(set(a))

原文地址:https://www.cnblogs.com/wlyd/p/5664177.html