2022-02-16 2022-02-16 本文已影响0人 scoot929 python如何对一个dict list 根据field 排序 list= sorted(list, key=lambda i: (i['role'])) # 根据属性role排序