Commit c9397035 by 岳巧源

chip

parent ae28e36b
Showing with 1 additions and 1 deletions
......@@ -51,7 +51,7 @@ class DataUtil:
fp.close()
def ungz(self, file_path: str):
"""解压缩gz格式文件"""
"""解压缩gz格式文件 并移除源文件"""
f_name = file_path.replace(".gz", "")
g_file = gzip.GzipFile(file_path)
open(f_name, "wb+").write(g_file.read())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment