Python 复杂数据排序 通过自定义函数作为 sort 的 key 来排序复杂数据 def by_urgency(task): return task['urgency'] def test_sort_complicated(): tasks = [ { 'title':