摘要: python里列表的sort和内置的sorted函数,都可以进行排序,列表的sort方法是在原有的列表上进行排序,sorted是会返回一个新的对象 persons = [ {'name': '小明', 'age': 25}, {'name': '小红', 'age': 15}, {'name': ' 阅读全文
posted @ 2019-12-10 10:26 JaryTom 阅读(290) 评论(0) 推荐(0) 编辑