我如何排序如下使用name屬性我的Python列表,如何使用python對列表進行排序?
[{'name':'Accra','url':''},
{'name':'Dubai','url':''},
{'name':'Birmingham','url':''},
{'name':'Dhaka','url':''},
{'name':'Abu Dhabi','url':''},
{'name':'Lahore','url':''},
{'name':'Karachi','url':''},
{'name':'Kathmandu','url':''},
{'name':'SEA','url':''}]
請使用現有資源:https ://wiki.python.org/moin/HowTo/Sorting/。 – user2864740