From c2c64f822a117c89552454acee91ec789ca61f55 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:29:50 +0800 Subject: [PATCH] Update decode.py --- src/decode.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/decode.py b/src/decode.py index 01de5cdee..40fc4f57a 100644 --- a/src/decode.py +++ b/src/decode.py @@ -3,6 +3,13 @@ import zlib import lzma import gzip +from datetime import datetime + +# 获取当前日期和时间 +now = datetime.now() + +# 将日期和时间格式化为字符串 +formatted_date = now.strftime("%Y-%m-%d %H:%M:%S") def try_decompress(data): @@ -87,6 +94,6 @@ def decrypt_nested(data): # 输出最终解密结果 print("最终解密结果:") -print(final_decrypted_data) -with open("./input.py", 'wb') as f: +print("#"+formatted_date + "\n"+final_decrypted_data) +with open("./onput.py", 'wb') as f: f.write(final_decrypted_data)