JSON和DICT格式互转方法: import json //# 序列化成json字符串 d = {‘name’:‘jod’} j = json.dumps(d) #反序列化成字典 print json.loads(j)