From b6d2836e849605455217da23329847b835a1420d Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 21 May 2026 13:30:14 +0800 Subject: [PATCH] =?UTF-8?q?docs/=E5=AE=8C=E6=95=B4=E6=8A=80=E6=9C=AF?= =?UTF-8?q?=E6=96=87=E6=A1=A3:=20=E5=8F=AF=E6=89=A7=E8=A1=8C=20import=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E6=94=B9=E4=B8=BA=E6=96=B0=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8 处 from Underlying_Operations / from path_config / python -c "..." 示例改为 douyin.core.underlying_operations / douyin.core.path_config, 确保读者复制粘贴能跑通。 文档头部"路径迁移说明"表里左侧"旧"列保留旧路径作为对照;正文叙述性 提及(如 "见 Underlying_Operations.get_screenshot() 实现")暂保留, 读者依靠头部表对照即可。 Co-Authored-By: Claude Opus 4.7 --- docs/完整技术文档.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/完整技术文档.md b/docs/完整技术文档.md index 329f34e..7b41316 100644 --- a/docs/完整技术文档.md +++ b/docs/完整技术文档.md @@ -381,7 +381,7 @@ Remove-Item pic\screenshot.png.tmp -Force -ErrorAction SilentlyContinue - OCR 未初始化或识别异常: ```python -from Underlying_Operations import underlying_operations +from douyin.core.underlying_operations import underlying_operations op = underlying_operations() op._ensure_ocr() print(op.analyse_pic_word('pic/screenshot.png')) @@ -445,7 +445,7 @@ python -m py_compile $(git ls-files "**/*.py") ```bash python -m py_compile $(git ls-files "**/*.py") || exit 1 python - <<'PY' -from path_config import get_reservations_path +from douyin.core.path_config import get_reservations_path import os print('reservations path', get_reservations_path()) assert os.path.isdir(os.path.dirname(get_reservations_path())) @@ -466,7 +466,7 @@ PY - 可调用的“程序式”API(Python)示例: ```python -from Underlying_Operations import underlying_operations +from douyin.core.underlying_operations import underlying_operations op = underlying_operations() # 获取当前截图路径 img = op.get_screenshot('') @@ -605,7 +605,7 @@ text = op.analyse_pic_word(img) 1. 验证截图是否可用: ```powershell -python -c "from Underlying_Operations import underlying_operations; op=underlying_operations(); print(op.get_screenshot(''))" +python -c "from douyin.core.underlying_operations import underlying_operations; op=underlying_operations(); print(op.get_screenshot(''))" ``` 2. 快速语法检查(仓库级): @@ -647,7 +647,7 @@ python run_cli.py --device-id --wait-minutes 1 ```bash python -m py_compile $(git ls-files "**/*.py") || exit 1 python - <<'PY' -from path_config import get_reservations_path +from douyin.core.path_config import get_reservations_path import os print('reservations path', get_reservations_path()) assert os.path.isdir(os.path.dirname(get_reservations_path())) @@ -1879,7 +1879,7 @@ def attend_choujiang(analyser) -> bool: ```python def load_reservations_from_state(analyser) -> list: import json - import path_config + from douyin.core import path_config reservations_path = path_config.get_reservations_path() if not os.path.exists(reservations_path): @@ -3959,7 +3959,7 @@ logger.error( ```python # run_cli.py from douyin.core.douyin_fudai import fudai_analyse -from Underlying_Operations import underlying_operations +from douyin.core.underlying_operations import underlying_operations # 初始化 operation = underlying_operations()