python的sorted() 函数

摘自:http://www.runoob.com/python/python-func-sorted.html

    sortedClassCount=sorted(classCount.items(),key=operator.itemgetter(1),reverse=True) #把'iteritems'改成了tiems,就可以在python3上运行了.

原文地址:https://www.cnblogs.com/chulin/p/9262057.html