相关疑难解决方法(0)

是python dict str()函数可靠地排序键?

在python中,dict {1:1,2:2,3:3}和str()时{3:3,2:2,1:1}生成"{1:1,2:2,3:3}"

我可以依赖这种排序,或者至少是因为当通过str()函数时,包含相同键/值对的dicts将生成相同的字符串这一事实?

python string dictionary

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

标签 统计

dictionary ×1

python ×1

string ×1