清理未使用导入和局部变量

This commit is contained in:
yml2213
2026-08-31 10:31:32 +08:00
parent b58c6b4357
commit 840af3108e
7 changed files with 3 additions and 145 deletions
-2
View File
@@ -103,9 +103,7 @@ def restore_geetest_image(input_path: str, output_path: str) -> None:
# 打开混淆图像
img = Image.open(input_path)
new_img = Image.new("RGB", (260, 160))
r = 160
for _ in range(len(Ut)):
a = r / 2
c = Ut[_] % 26 * 12 + 1
u = 80 if Ut[_] > 25 else 0
l = img.crop(box=(c, u, c + 10, u + 80))