直接上代码
import itchat @itchat.msg_register(itchat.content.TEXT) def replyImg(msg): return "我去睡觉了:这是自动回复" itchat.auto_login() itchat.run()