{"action":"created","issue":{"url":"https://api.github.com/repos/peimin/note/issues/8","labels_url":"https://api.github.com/repos/peimin/note/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/peimin/note/issues/8/comments","events_url":"https://api.github.com/repos/peimin/note/issues/8/events","html_url":"https://github.com/peimin/note/issues/8","id":52006859,"number":8,"title":"08 python","user":{"login":"peimin","id":5111673,"avatar_url":"https://avatars.githubusercontent.com/u/5111673?v=3","gravatar_id":"","url":"https://api.github.com/users/peimin","html_url":"https://github.com/peimin","followers_url":"https://api.github.com/users/peimin/followers","following_url":"https://api.github.com/users/peimin/following{/other_user}","gists_url":"https://api.github.com/users/peimin/gists{/gist_id}","starred_url":"https://api.github.com/users/peimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peimin/subscriptions","organizations_url":"https://api.github.com/users/peimin/orgs","repos_url":"https://api.github.com/users/peimin/repos","events_url":"https://api.github.com/users/peimin/events{/privacy}","received_events_url":"https://api.github.com/users/peimin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":true,"assignee":null,"milestone":{"url":"https://api.github.com/repos/peimin/note/milestones/2","html_url":"https://github.com/peimin/note/milestones/%E5%B7%A5%E4%BD%9C","labels_url":"https://api.github.com/repos/peimin/note/milestones/2/labels","id":904428,"number":2,"title":"工作","description":"","creator":{"login":"peimin","id":5111673,"avatar_url":"https://avatars.githubusercontent.com/u/5111673?v=3","gravatar_id":"","url":"https://api.github.com/users/peimin","html_url":"https://github.com/peimin","followers_url":"https://api.github.com/users/peimin/followers","following_url":"https://api.github.com/users/peimin/following{/other_user}","gists_url":"https://api.github.com/users/peimin/gists{/gist_id}","starred_url":"https://api.github.com/users/peimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peimin/subscriptions","organizations_url":"https://api.github.com/users/peimin/orgs","repos_url":"https://api.github.com/users/peimin/repos","events_url":"https://api.github.com/users/peimin/events{/privacy}","received_events_url":"https://api.github.com/users/peimin/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2014-12-15T15:34:22Z","updated_at":"2015-04-24T08:53:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-12-15T16:27:28Z","updated_at":"2015-09-22T11:47:26Z","closed_at":null,"body":"就像任何真诚的关系，随着岁月的流逝只会变得更加亲密。"},"comment":{"url":"https://api.github.com/repos/peimin/note/issues/comments/142262963","html_url":"https://github.com/peimin/note/issues/8#issuecomment-142262963","issue_url":"https://api.github.com/repos/peimin/note/issues/8","id":142262963,"user":{"login":"peimin","id":5111673,"avatar_url":"https://avatars.githubusercontent.com/u/5111673?v=3","gravatar_id":"","url":"https://api.github.com/users/peimin","html_url":"https://github.com/peimin","followers_url":"https://api.github.com/users/peimin/followers","following_url":"https://api.github.com/users/peimin/following{/other_user}","gists_url":"https://api.github.com/users/peimin/gists{/gist_id}","starred_url":"https://api.github.com/users/peimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peimin/subscriptions","organizations_url":"https://api.github.com/users/peimin/orgs","repos_url":"https://api.github.com/users/peimin/repos","events_url":"https://api.github.com/users/peimin/events{/privacy}","received_events_url":"https://api.github.com/users/peimin/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:47:26Z","updated_at":"2015-09-22T11:47:26Z","body":"##### python list sort 排序\r\n```python\r\ndef getSort(self, player):\r\n\treturn player['score']\r\n\r\nsame_group.append({\r\n    'sort':     int(rank),\r\n    'key':      other_name,\r\n    'score':    otherplundreParams['plunder'],\r\n    'nickname': self.redisOp.player_hget(other_name, 'nickname')\r\n})\r\n\r\nsame_group = sorted(same_group, key=self.getSort, reverse=True)\r\n```\t"}}