摘要: import json def op_data(filename,dic=None): if dic: with open(filename,'w',encoding='utf-8') as fw: json.dump(dic,fw,ensure_ascii=False,indent=4)#json串写入文件中 else: ... 阅读全文
posted @ 2018-04-20 10:08 暮色森森 阅读(229) 评论(0) 推荐(0) 编辑