python 特殊排序;python 按照字典排序;

    1. l = [{"a":1}, {"a":2}]
    2. # 注意这里的 d 只是形参
    3. l.sort(key = lambda d: d["a"], reverse = True)