摘要: from functools import cmp_to_keyls=['9','23','3','56','78']sorted(ls, key=cmp_to_key(lambda x, y: int(x + y) -int(y + x))) 阅读全文
posted @ 2020-05-20 20:20 王毅2016 阅读(293) 评论(0) 推荐(0) 编辑