字典一种key - value 的数据类型,使用就像我们上学用的字典,通过笔划、字母来查对应页的详细内容。
语法:
info = { ‘stu1‘:"saber", ‘stu2‘:"archer", ‘stu3‘:"rider", }
字典的特性:
dict是无序的
key必须是唯一的,天生去重
字典操作
原文:http://www.cnblogs.com/lin-777/p/7055730.html