【python坑记录】

python的sort函数使用的时候有一个参数cmp。一定注意这里返回值要用1和-1。不能True和False!!!

posted @ 2016-11-20 00:41  mrbean  阅读(342)  评论(0编辑  收藏  举报