import pyautogui
Royal_image = pyautogui.locateCenterOnScreen('Royal.png', grayscale=True, confidence=0.5, region=(50, 55, 310, 230))
Royal_image1 = pyautogui.locateCenterOnScreen('Royal1.png', grayscale=True, confidence=0.5, region=(50, 55, 310, 230))
print('我想要的效果')
pyautogui.locateCenterOnScreen('Royal.png'|'Royal2.png'|'Royal3.png', grayscale=True, confidence=0.5, region=(50, 55, 310, 230))
用于识别图片,图片具有一定变化.




x张图片都识别一次,如果有一张是xy,返回xy,如果全是None,返回None.
不是循环寻找.