小编Nav*_*eed的帖子

按数据类型排序python字典

我有python字典组合列表和字符串.

例如

dic = {"a": "11","c": [1,3,4], "b": [1,2,3], "g": "a"}
Run Code Online (Sandbox Code Playgroud)

我想按数据类型对其进行排序.

喜欢

dic = {"a": "11", "g": "a", "c": [1,3,4], "b": [1,2,3]}
Run Code Online (Sandbox Code Playgroud)

python sorting dictionary

1
推荐指数
1
解决办法
94
查看次数

标签 统计

dictionary ×1

python ×1

sorting ×1