feat: 函数内导入
This commit is contained in:
parent
94f269626d
commit
fd16c6f9d2
|
|
@ -3,7 +3,6 @@ from typing import Optional
|
||||||
import asyncio
|
import asyncio
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import pyautogui
|
|
||||||
import time
|
import time
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import io
|
import io
|
||||||
|
|
@ -154,6 +153,7 @@ async def try_template_matching() -> bool:
|
||||||
通过模板匹配查找并点击验证框
|
通过模板匹配查找并点击验证框
|
||||||
使用 pyautogui.locateOnScreen 直接在屏幕上定位验证框模板
|
使用 pyautogui.locateOnScreen 直接在屏幕上定位验证框模板
|
||||||
"""
|
"""
|
||||||
|
import pyautogui
|
||||||
template_paths = [
|
template_paths = [
|
||||||
'apps/resm/cloudflare_checkbox2.png',
|
'apps/resm/cloudflare_checkbox2.png',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue