"""底层操作模块 本目录包含从 douyin/core/underlying_operations.py 模块化拆分出的子模块。 对外仍统一通过本包导出符号,避免下游代码直接耦合到内部子模块路径。 """ # 从子模块导入 from .ocr_operations import ( analyse_pic_word, analyse_pic_digits, extract_ocr_content, _ensure_ocr, ) from .screenshot_operations import ( get_screenshot, _find_pic_path, cut_pic, save_reward_pic, ) # 从原始大文件再导出,保持向后兼容;新代码请优先使用上面的子模块导入。 from douyin.core.underlying_operations import ( _safe_replace_file, _ensure_parent_dir, _mirror_screenshot_to_external, underlying_operations, ) __all__ = [ # OCR相关 "analyse_pic_word", "analyse_pic_digits", "extract_ocr_content", "_ensure_ocr", # 截图相关 "get_screenshot", "_find_pic_path", "cut_pic", "save_reward_pic", # 其他操作 "_safe_replace_file", "_ensure_parent_dir", "_mirror_screenshot_to_external", "underlying_operations", ]