优化脚本 不再使用配置文件

This commit is contained in:
ranchuan
2024-10-15 19:37:05 +08:00
parent 92d7b0e878
commit da3964123b
2 changed files with 104 additions and 69 deletions

View File

@@ -1,4 +1,5 @@
import re
import os
import sys
import struct
import json
@@ -277,6 +278,12 @@ def bin_file_decrypt(bin_file:str):
return "tmp.bin"
def clear_tmp():
tmp_list=['tmp.bin']
for item in tmp_list:
if os.path.exists(item):
os.remove(item)
# bin_to_hex.py input_file output_file
if __name__ == "__main__":