摘要: 对dictObject list进行排序dict = [{'x': 1, 'y':3}, {'x': 2, 'y':4}]* x 的值大于2优先排* y 按照从小到大顺序排列for d in dict: d.is_x_more_than_two = True if d.x >2 else Fa... 阅读全文
posted @ 2015-10-15 10:58 chaserchen 阅读(337) 评论(0) 推荐(0) 编辑