首页 > 编程知识 正文

python try语句,python中find的返回值是

时间:2023-05-04 05:59:22 阅读:166749 作者:2672

一、先安装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!' )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。