Sort dictionary python by value (word2vec)

后端 未结 0 1311
不思量自难忘°
不思量自难忘° 2021-01-28 02:45

I want to sort my dict by value, but if I apply this code it doesn\'t work (it print only my key-value pairs without any kind of sorting). If I change key=lambda x: x[1] to x[0]

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