📅  最后修改于: 2022-03-11 14:45:39.102000             🧑  作者: Mango
>>> def multisort(xs, specs):
... for key, reverse in reversed(specs):
... xs.sort(key=attrgetter(key), reverse=reverse)
... return xs