阅读背景:

由于json字符串化的快捷键导致数据丢失

来源:互联网 

Consider the example below

考虑下面的例子

>>> import json
>>> d = {0: 'potato', '0': 'spud'}
>>> json.dumps(d)
'{"0": "potato", "0": "spud"}'
>>> json.loads(json.dumps(d))
{'0': 'spud'}
>>> impo



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: