和我的想法差不多 s, dic = input(), {} for i in set(s): dic[i] = s.count(i) x = dict(sorted(dic.items(), key= lambda x:(x[1],1-ord(x[0])), reverse=True)) [print(i, end='') for i in x.keys()]
1

相关推荐

飞花断音:这个头像有点搞笑
点赞 评论 收藏
分享
牛客网
牛客企业服务