Created
December 2, 2010 04:48
-
-
Save masahitojp/724789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
u''' | |
2. 組み込み関数 — Python v2.6.2 documentation | |
http://pythonjp.sourceforge.jp/dev/library/functions.html?highlight=sorted#sorted | |
''' | |
#java -Xms512M -Xmx512M -cp igo-0.4.2.jar net.reduls.igo.bin.BuildDic naist mecab-naist-jdic-0.6.3-20100801 EUC-JP | |
# a.strftime('%b %d, %Y %p%I:%M') | |
for k ,v in sorted(a.items(),cmp=lambda x,y:cmp(int(x),int(y)),key= lambda a:a[0],reverse=True): | |
print k,v | |
''' | |
9 9 | |
10 10 | |
15 15 | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment