我在 Python 的字典列表中有这组值。
[
{'dep_price': '42.350', 'dep_date': '8-Mar-2017', 'trip_type': 'dep'},
{'dep_price': '42.350', 'dep_date': '9-Mar-2017', 'trip_type': 'dep'},
{'dep_price': '36.350', 'dep_date': '10-Mar-2017', 'trip_type': 'dep'}
]
Run Code Online (Sandbox Code Playgroud)
如何根据字段“dep_price”作为浮点值对它们进行排序?