学习笔记(62):Python 面试100讲(基于Python3.x)-用lambda表达式对列表进行排序

立即学习:https://edu.csdn.net/course/play/26755/340130?utm_source=blogtoedu

 

Lambda表达式只有一行代码,并返回该行代码的结果
lambda x:x["age"] 

发布了73 篇原创文章 · 获赞 3 · 访问量 660

猜你喜欢

转载自blog.csdn.net/weixin_43186090/article/details/104505230