fix issue

master
kenwoodjw 2019-03-05 17:24:17 +08:00
parent c845f5a976
commit 1ff99df181
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@
dict1[key] = value dict1[key] = value
return dict1 return dict1
``` ```
## 3.5 请按alist中元素的age由小到大排序 ## 3.5 请按alist中元素的age由大到小排序
``` ```
alist = [{'name':'a','age':20},{'name':'b','age':30},{'name':'c','age':25}] alist = [{'name':'a','age':20},{'name':'b','age':30},{'name':'c','age':25}]
def sort_by_age(list1): def sort_by_age(list1):