Skip to content

Commit 28105c8

Browse files
authored
Update python中dict的sorted排序.md
1 parent 420d166 commit 28105c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/python中dict的sorted排序.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#python中dict的sorted排序
22

3-
我们知道Python的内置dictionary数据类型是无序的,通过key来获取对应的value。可是有时我们需要对dictionary中 的item进行排序输出,可能根据key,也可能根据value来排。到底有多少种方法可以实现对dictionary的内容进行排序输出呢?下面摘取了 一些精彩的解决办法。
3+
我们知道Python的内置dictionary数据类型是无序的,通过key来获取对应的value。可是有时我们需要对dictionary中的item进行排序输出,可能根据key,也可能根据value来排。到底有多少种方法可以实现对dictionary的内容进行排序输出呢?下面摘取了 一些精彩的解决办法。
44

55
##按key排序
66

0 commit comments

Comments
 (0)