标签:
__author__ = ‘SRC_TJ_XiaoqingZhang‘ import json data1 = {‘b‘: 789, ‘c‘: 456, ‘a‘: 123} encode_json = json.dumps(data1) print type(encode_json), encode_json decode_json = json.loads(encode_json) print type(decode_json) print decode_json[‘a‘] print decode_json
参考: http://www.cnblogs.com/coser/archive/2011/12/14/2287739.html
标签:
原文地址:http://www.cnblogs.com/carlo/p/4563644.html