Ordering a dictionary in Python

前端 未结 0 704
温柔的废话
温柔的废话 2020-12-18 07:24

I do not understand why this code does not return the list ordered:

A = {2:\'a\', 1: \'b\', 3:\'c\'} 

R = list(a.keys()).sort()

In fact it d

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