摘要: #以下是网上的一个牛人给你的解决方法from collections import Countera=['bj', 'bj', 'bj', 'gz', 'shh', 'shh']d=Counter(a)print dprint d.most_common()print d.most_common()... 阅读全文
posted @ 2013-01-15 15:25 前行者2011 阅读(202) 评论(0) 推荐(0) 编辑