📜  打印字典中的所有唯一值 - Python 代码示例

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

代码示例1
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