wechat.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:WechatAutoReply 作者: raomuyang 项目源码 文件源码
def auto_reply_map(msg):
    try:
        loc = msg["Content"].split(":")
        if loc is not None:
            loc = loc[0]
            itchat.send_msg(msg="????????%s????" % loc, toUserName=msg['FromUserName'])
            resp = api.ask(loc + "???")
            if resp is not None:
                itchat.send_msg(msg=resp['text'], toUserName=msg['FromUserName'])
            else:
                return "???????"
    except Exception as e:
        print(str(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号