标签:json code 通过 port java div bsp json格式 class
import pickle
info = {‘name‘:‘daxin‘,‘age‘=20} result = pickle.dumps(info) #序列化 print pickle.loads(result) #反序列化
import pickle info = {‘name‘:‘daxin‘,‘age‘=20} pickle.dump(info,open(‘pick.txt‘,‘w‘)) #持久序列化 pickle.load(open(‘pick.txt‘)) #反序列化
import json info = {‘name‘:‘daxin‘,‘age‘=20} result = json.dumps(‘info‘) json.loads(result)
标签:json code 通过 port java div bsp json格式 class
原文地址:http://www.cnblogs.com/dachenzi/p/6262723.html