📜  python 删除重复项 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.823000             🧑  作者: Mango

代码示例6
tempA = []  
uniqueDict = dict()
for key, val in thisdict.items():
    if val not in tempA:
        tempA.append(val)
        uniqueDict[key] = val