From 7c0d4942506f39ad8ebf6601090f6cefc30a294d Mon Sep 17 00:00:00 2001 From: Xiaohang Date: Mon, 24 Mar 2025 14:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=99json=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/utils.py b/utils.py index 2d175bc..c570c9b 100644 --- a/utils.py +++ b/utils.py @@ -28,14 +28,6 @@ def write_json_file(filename, json): f.write(json) f.close() -def write_json_file(folder, filename, json): - if not os.path.exists(folder): - os.mkdir(folder) - f = open(folder + '/' + filename, "w") - f.write(json) - f.close() - - def gzip_file(_in_file): with open(_in_file, 'rb') as f_in: with gzip.open(_in_file + '.gz', 'wb') as f_out: