def save_obj_to_file(path, target_obj): file = open(path,'wb') pickle.dump(target_obj) file.close() def load_obj_from_file(path): file = open(path,'rb') return pickle.load(file)
posted on 2018-08-08 14:20 张居斜 阅读(113) 评论(0) 编辑 收藏 举报