fix issue
parent
c845f5a976
commit
1ff99df181
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue