摘要: 1、给定一个字符串,请将字符串里的字符按照出现的频率降序排列。 import collections def frequencySort(s): dic = dict(collections.Counter(s)) res = sorted(dic.items(),key = lambda item 阅读全文
posted @ 2020-07-04 17:31 jerrygogo 阅读(152) 评论(0) 推荐(0) 编辑