Compare commits

..

No commits in common. "420b9c54248c6f0e549c8579c623a7e5e9e74702" and "9cb9d71f0aae4ae5a42fcd9343c2d179e043dca2" have entirely different histories.

1 changed files with 0 additions and 8 deletions

View File

@ -8,11 +8,3 @@
"""
# 一个匿名函数的使用场景
student_list = [
{'name': 'Jerry', 'age': 21},
{'name': 'Tom', 'age': 20},
{'name': 'Mickey', 'age': 22}
]
sorted_list = sorted(student_list, key=lambda x: x['age'])
print(sorted_list)