📅  最后修改于: 2022-03-11 14:45:22.164000             🧑  作者: Mango
# To sort the list in place...
ut.sort(key=lambda x: x.count, reverse=True)
# To return a new list, use the sorted() built-in function...
newlist = sorted(ut, key=lambda x: x.count, reverse=True)