python 字典排序(值排序),并返回key序列
a = {"a":1, "c":2, "b":3, "d":0}b = a.keys()b.sort( key = a.__getitem__ )print b
['d', 'a', 'c', 'b']