📅  最后修改于: 2022-03-11 14:45:27.801000             🧑  作者: Mango
orders = {
'Pizza': 33,
'Burger': 45,
'Sandwich': 67,
'Latte': 39,
'Snickers': 48
}
sort_orders = sorted(orders.items(), key=lambda x: x[1], reverse=True)
for i in sort_orders:
print(i[0], i[1])