189 8069 5689

python接收微信消息报'HTMLParser' object has no attribute 'unescape'错误

我的博客

目前创新互联已为1000多家的企业提供了网站建设、域名、虚拟空间、网站托管、企业网站设计、道里网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

一直有个想法,想要弄个微信机器人,然而出师不利,刚开始就碰壁了

先上代码,这个是用来接收消息的,是个测试脚本

#!/usr/bin/python
# coding: utf-8

import itchat

def write_infomation(text_value):
print(text_value)

@itchat.msg_register(itchat.content.TEXT)
def get_reply(msg):
  write_infomation(msg.text)

itchat.auto_login()
itchat.run()

文章标题:python接收微信消息报'HTMLParser' object has no attribute 'unescape'错误
网站网址:http://cdxtjz.cn/article/dsogsid.html

其他资讯