摘要: l=[{'a':1,'b':3,'c':'c'},{'a':2,'b':3,'c':'c'},{'a':1,'b':2,'c':'a'},{'a':3,'b':4,'c':'s'}] sorted(l,key=lambda x:x['b']) # 根据单个条件排序 [{'a': 1, 'b': 阅读全文
posted @ 2021-04-22 09:43 唐大侠的小迷弟 阅读(269) 评论(0) 推荐(0)