来源:办公自动化(PPt EXCEL world 邮件 )
整体流程:
1.首先安装itchat
2.提供扫码入口进行登录
3.选择要发送消息的对象
4.编辑需要发送的消息
5.发送
代码试下:
import itchat itchat.auto_login(enableCmdQR=True,hotReload=True) to_name=itchat.search_friends(name='@----刈-carzy') itchat.send_msg('ceshi',toUserName=to_name[0]['UserName']