[python]dict sort by key or value. ... 針對key 'value' 做sort #以下用cmp,可以達到上面指定key的效果d.sort(cmp=lambda x,y: cmp(x['id'], ...
確定! 回上一頁