显示的错误是:
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上的下载说明进行操作
非常感激