1.安裝三方python包,pyautogui
pip install pyautogui
2.導入包
3.輸入代碼
import pyautogui as gui
gui.hotkey('ctrl','alt','z') #模擬組合鍵 打開QQ快捷鍵
for i in range(1,100):
gui.typewrite(message='!',)
gui.hotkey('ctrl','enter') #模擬組合鍵 發送消息
1.安裝三方python包,pyautogui
pip install pyautogui
2.導入包
3.輸入代碼
import pyautogui as gui
gui.hotkey('ctrl','alt','z') #模擬組合鍵 打開QQ快捷鍵
for i in range(1,100):
gui.typewrite(message='!',)
gui.hotkey('ctrl','enter') #模擬組合鍵 發送消息
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。