一、先安装wxpy库直接在pycharm中输入命令即可
pin install wxpy的国内下载可能会很慢,建议使用
pip install-uw xpy-I ' https://pypi.douban io.com/simple/' 2、基本命令1 .导入登录模块
from wxpy import * 2.机器人扫描登录初始化
bot=bot(3.不用每次保存缓存都登录
bot=bot(cache_path=true )4.搜索好友
my_fiend=bot.Friends(.search ) '朋友的名字')5.发送消息
my_fiend.send (你好)6.发送图片
my_fiend.send_image (图像路径)7.向文件助手发送消息
bot.file _ helper.send (' hello world!' )