写:
with open('./1.json', 'w') as f:
f.write(json.dumps(self.request_cookie))
读
with open('./1.json','r') as f:
data = json.load(f)
写:
with open('./1.json', 'w') as f:
f.write(json.dumps(self.request_cookie))
读
with open('./1.json','r') as f:
data = json.load(f)
本文标题:python 读写json文件
本文链接:https://www.haomeiwen.com/subject/ulqepqtx.html
网友评论