From 1282e46138b27a778eb5b835dc7c7c6d9054c055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E6=81=BA?= <1621362626@qq.com> Date: Thu, 21 Aug 2025 16:20:47 +0800 Subject: [PATCH] fix --- build.bat | 2 +- components/page1.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build.bat b/build.bat index b787779..4a03af4 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,5 @@ python embed.py -7z a -tzip -mx=9 cyzg.zip main.py backend.py ./components/*.py +7z a -tzip -mx=9 -aoa cyzg.zip main.py backend.py components/ -x!components/__pycache__/ REM 7z a -tzip -mx=9 data.db.zip data.db timeout /t 1 >nul gcc -Os -s main.c -o cyzg.exe -Wl,--gc-sections -Wl,--strip-all diff --git a/components/page1.py b/components/page1.py index a82fd47..7765aef 100644 --- a/components/page1.py +++ b/components/page1.py @@ -63,7 +63,6 @@ class Page1: url = "https://v.zikai.wang/zikai/cyzg" start_pos = instructions.find(url) if start_pos != -1: - # 计算起始和结束索引(tkinter 使用 "行.列" 格式) start_index = f"1.0 + {start_pos} chars" end_index = f"{start_index} + {len(url)} chars"