来源:办公自动化(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']

本文介绍了如何利用Python的itchat库实现微信消息的发送。首先需要安装itchat库,然后通过扫码方式登录微信,接着选择发送目标,编辑消息内容,最后发送消息。
2890

被折叠的 条评论
为什么被折叠?



