python自动化发QQ消息
作者:互联网
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') #模拟组合键 发送消息
标签:QQ,pyautogui,ctrl,python,gui,自动化,hotkey 来源: https://www.cnblogs.com/TD1900/p/12468842.html