我正试着执行代码来回答这个问题:Print while mouse pressed
我有个错误:

Traceback (most recent call last):
  File "p.py", line 1, in <module>
    from pymouse import PyMouseEvent
  File "/usr/local/lib/python3.4/dist-packages/pymouse/__init__.py", line 95, in <module>
    from unix import PyMouse, PyMouseEvent
ImportError: cannot import name 'PyMouse'

最佳答案

您正在使用不再受支持的旧模块。PyMouse与PyUserInput合并。用它来代替,它会解决你的问题。

09-04 11:19