python error
  • 板块灌水区
  • 楼主zhuhanle2011
  • 当前回复6
  • 已保存回复6
  • 发布时间2024/10/3 22:49
  • 上次更新2024/10/4 09:46:15
查看原帖
python error
625696
zhuhanle2011楼主2024/10/3 22:49

缩进有问题是为啥啊

from time import sleep
import pyautogui
import cv2
from PIL import ImageGrab, Image
import requests

#事先对按钮截图
afk = cv2.imread('Screenshot 2024-10-03 223203.png', cv2.IMREAD_GRAYSCALE)
while():
    msg = pyautogui.locateOnScreen(zhengnengliangImg, grayscale=True,confidence=.9)
    if msg==None: 
    	print ("没找到")
    else:
    	x,y,width,height=msg
        pyautogui.click(x,y,button='left')

2024/10/3 22:49
加载中...