logging用法
代码语言:javascript复制logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
logger.info("test")
pyautogui坐标点击
识别图片
代码语言:javascript复制coords = pyautogui.locateOnScreen('1.png')
获取坐标
代码语言:javascript复制x, y = pyautogui.center(coords)
点击坐标
代码语言:javascript复制pyautogui.leftClick(x, y)