修复写json报错

main
Xiaohang 2025-03-24 14:54:25 +08:00
parent 82a3b6e7ef
commit 7c0d494250
1 changed files with 0 additions and 8 deletions

View File

@ -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: