字典的值可以使任意类型,也可以嵌套
d={"a":"1","b":"2"} for key in list(d.keys()): print d[key]
排序输出
d={"b":"2","a":"1"} for key in sorted(d): print d[key]
d={'a':'1','b':2} print 'a' in d # true print 'd' not in d # true