摘要: # Python 复杂数据排序 通过自定义函数作为 sort 的 key 来排序复杂数据 ``` def by_urgency(task): return task['urgency'] def test_sort_complicated(): tasks = [ {'title': 'Laundr 阅读全文
posted @ 2023-08-11 16:11 软匠 阅读(20) 评论(0) 推荐(0)