How to sort a dictionary based on key ascending and value descending if the key and value are made up of strings of multiple chars?

后端 未结 0 506
一向
一向 2020-12-07 20:40

I have a dictionary: dict_1 = {\'ABCDEFG\': [\'AB\'], \'GFE\': [\'AB\']}

I want to sort the dictionary based on value ascending and based on key descending. I have wr

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