How can I sort a dictionary keys by how many times a specific character appears in the key?

后端 未结 0 602
庸人自扰
庸人自扰 2020-12-13 09:40

For example, I have the dict, {"aaaa": 158,"aaaaaaaaaapppppp": 170,"ooooo":14} and i want it to be sorted based on how many times the character

相关标签:
回答
  • 消灭零回复
提交回复
热议问题