[python]dict sort by key or value. ... for key, value in sorted(mydict.iteritems(), key=lambda (k,v): (v,k)): print "%s: %s" % (key, value).
確定! 回上一頁