Wil*_*ran 4 python sorting dictionary facebook list
我想对Facebook的Graph API返回的朋友列表进行排序.排序后的结果需要按姓名按字母顺序排列.
[
{
"name": "Joe Smith",
"id": "6500000"
},
{
"name": "Andrew Smith",
"id": "82000"
},
{
"name": "Dora Smith",
"id": "97000000"
},
{
"name": "Jacki Smith",
"id": "107000"
}
]
Run Code Online (Sandbox Code Playgroud)
附加说明:我在使用Python 2.5.x的Google App Engine上运行.
归档时间: |
|
查看次数: |
4566 次 |
最近记录: |