python 清楚数组重复字符串元素时间:2022-11-17 15:53:03l1 = ['bb','c','d','bb','c','a','a'] l2 = {}.fromkeys(l1).keys() print (l2)