首页 > 技术文章 > python的sorted() 函数

chulin 2018-07-04 10:27 原文

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

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

 

推荐阅读