Python教程:[67]itemgetter对列表排序

xxxspy 2016-04-15 18:03:23
Categories: Tags:

上一篇文章讲了如何对list进行排序【请看传送门http://jingyan.baidu.com/article/90808022a546b8fd90c80f48.html】,今天我们进一步加深学习,使用 itemgetter来加速排序,并且可以减少代码的写作难度,我们来看看具体的例子,如何使用itemgetter:

转载请注明来自DataScience.

邮箱: 675495787@qq.com