我正在尝试使用locateCenterOnScreen()PyAutoGUI的功能,但它引发了:
Traceback (most recent call last):
File "C:\Users\windows\Desktop\asd.py", line 3, in <module>
buttonx, buttony = pyautogui.locateCenterOnScreen('who.jpg')
TypeError: 'NoneType' object is not iterable
Run Code Online (Sandbox Code Playgroud)
我的代码是:
import pyautogui
buttonx, buttony = pyautogui.locateCenterOnScreen('who.jpg')
pyautogui.doubleClick(buttonx,buttony)
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?