第一,通过内置函数 sorted 结合 operator 中的 itemgetter函数解决 第二,通过内置函数 sorted 结合 lamb...
lambda dic:dic['age']) #根据列表里的字典的年龄大小来排序 print(l1)# [{'id': 1, 'name'...