pyautogui.displayMousePosition不起作用

问题描述

我只是python的初学者,我正在按照一个教程制作一个简单的漫游器,每次看到黑色就会单击它。

我已经安装了pyautogui; 'pip install pyautogui'并导入。 当我输入以下命令以显示鼠标位置:select from ( select t.*,max(case when wfid not in (12,17) then 1 else 0 end) over(partition by id) flag from mytable t ) t where flag = 0 时,它将显示错误

pyautogui.displayMousePosition()

解决方法

您可以使用较低版本的python(3.7)或带有(pip安装枕头)的istall枕头