pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from
pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from mouse moving to a corner of the scre
pyautogui.故障安全异常:鼠标移动到屏幕角落时触发pyautogui故障保护。若要禁用此故障保护,请将pyautogui.FAILSAFE设置为False。不建议禁用故障保护。
报错原因:
鼠标移动到屏幕角落时触发pyautogui故障保护。
代码中加这行就可以解决了:
pyautogui.FAILSAFE=False