sness
blog of sness
Wednesday, October 24, 2012
How to sort a Python dict (dictionary) by keys or values « SaltyCrane Blog
How to sort a Python dict (dictionary) by keys or values « SaltyCrane Blog
: "for key in sorted(mydict.iterkeys()):
print "%s: %s" % (key, mydict[key])"
'via Blog this'
Newer Post
Older Post
Home