问题描述
显示的错误是:
Type "help","copyright","credits" or "license()" for more information.
>>>
================= RESTART: C:/Users/user/Desktop/mywhatsapp.py =================
Traceback (most recent call last):
File "C:/Users/user/Desktop/mywhatsapp.py",line 1,in <module>
from pynput.keyboard import Key,Controller
ModuleNotFoundError: No module named 'pynput'
>>>
这是我的代码:
from pynput.keyboard import Key,Controller
import time
Keyboard = Controller()
time.sleep(5)
while True:
for letter in "This my Whatsapp spam bot.":
Keyboard.press(letter)
Keyboard.release(letter)
Keyboard.press(Key.enter)
Keyboard.release(Key.enter)
我按照https://www.journaldev.com/30076/install-python-windows-10
上的下载说明进行操作非常感谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)