摘要: import json# dumps #一般处理字符串# dump #一般处理文件#字符串和json之间的转换test_dict={"name":"fxh","age":23}a=json.dumps(test_dict)print(a,type(a))b='{"name": "fxh", "age": 23}'c=json.loads(b)print(c,type(c))#文件和jso... 阅读全文
posted @ 2017-11-13 22:56 xuanhui 阅读(240) 评论(0) 推荐(0)