dict(sorted(dictionary.items(), key=operator.itemgetter(1)) does not always return a ordered dict when the value is a list

前端 未结 0 1843
醉话见心
醉话见心 2020-12-30 06:46

I have a dict:

count2:defaultdict(, {\'i\': [3, 2, 2, 1], \'w\': [2, 2], \'p\': [2, 2], \'d\': [2, 2], \'m\': [2, 2], \'y\': [2, 2, 2, 1],

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