python 清楚数组重复字符串元素

l1 = ['bb','c','d','bb','c','a','a']
l2 = {}.fromkeys(l1).keys()
print (l2)

原文地址:https://www.cnblogs.com/Silababy/p/5681997.html