直接安装pip install pyuserinput 即可,改包集成了 pymouse、pykeyboard 的功能 可能需要区分大小写:pip install PyUserInput 关联依赖包(不确定) 需要先安装 pyhook ,在windows下是 pyWinhook 。pywin32