l=[
{'name':'alex','age':84},
{'name':'oldboy','age':73},
{'name':'egon','age':18},
]
l.sort(key=lambda i:i['age'])
print(l)
转载于:https://www.cnblogs.com/SkyOceanchen/p/11413036.html
l=[
{'name':'alex','age':84},
{'name':'oldboy','age':73},
{'name':'egon','age':18},
]
l.sort(key=lambda i:i['age'])
print(l)
转载于:https://www.cnblogs.com/SkyOceanchen/p/11413036.html