摘要: import os import json class SaveJson(object): def save_file(self, path, item): # 先将字典对象转化为可写入文本的字符串 item = json.dumps(item) try: if not os.path.exists(path): with open(path, "w", encoding='utf-8') as 阅读全文
posted @ 2019-10-12 11:42 lattesea 阅读(8492) 评论(0) 推荐(1) 编辑