io_util.py 304 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 class IoUtils(object): @staticmethod def save_json(saveObj: object, file_path: str): """ 保存数据到本地目录 :param file_path: :return: """ import json with open(file_path, "w") as file: file.write(json.dumps(saveObj))