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

时间:2022-11-17 15:53:03

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

相关文章