关于python:Python-学习

2次阅读

共计 50 个字符,预计需要花费 1 分钟才能阅读完成。

如何用字典的 key 排序

`~~~~
sorted(d.items(), key=lambda x: x[1])

正文完
 0