📜  Python 按值排序字典 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.927000             🧑  作者: Mango

代码示例6
from operator import itemgetter
new_dict = sorted(data.items(), key=itemgetter(1))