diff --git a/main.py b/main.py index 56ecfb6063f4ffb7fb8daf3cc09a973cc4a8e681..db205bb13df0f6debfe50aa54e1e919c9039e58c 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ def calculate_hash(file_path, hash_function, progress_callback, update_interval= def calculate_crc32(file_path, progress_callback, update_interval=UPDATE_INTERVAL): crc32_value = 0 with open(file_path, "rb") as f: - total_size = f.seek(0, 2) # 获取文件总大小 + total_size = f.seek(0, 3) # 获取文件总大小 f.seek(0) # 回到文件开头 bytes_processed = 0 last_update = 0 @@ -177,3 +177,6 @@ root.grid_rowconfigure(3, weight=1) # 使结果显示框在窗口缩放时可 root.grid_columnconfigure(0, weight=1) # 使主列在窗口缩放时可扩展 root.mainloop() + + +exit \ No newline at end of file