摘要: stus = [ {"name":"zhang","age":18}, {"name":"lisi","age":13}, {"name":"wang","age":15}, ] #名字排序 stus.sort(key = lambda x:x['name']) #age排序 stus.sort(key = lambda x:x['age']) 阅读全文
posted @ 2019-06-11 08:14 AngDH 阅读(138) 评论(0) 推荐(0) 编辑