📌  相关文章
📜  python 对多个键进行排序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.102000             🧑  作者: Mango

代码示例4
>>> def multisort(xs, specs):
...     for key, reverse in reversed(specs):
...         xs.sort(key=attrgetter(key), reverse=reverse)
...     return xs