📜  在字典值python代码示例中查找所有唯一项

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

代码示例2
dict = {'511':'Vishnu','512':'Vishnu','513':'Ram','514':'Ram','515':'sita'}
list =[] # create empty list
for val in dict.values(): 
  if val in list: 
    continue 
  else:
    list.append(val)

print list