观察者模式 复制代码 代码如下: interface Subject { public function Attach($Observer); //添加观察者 public function Detach($Observer); //踢出观察者 public function Notify(); //满足条件时通知观察者 public function SubjectState($Subject); //观察条件 } class Boss Implements Subject { public
参考来自:https://itchat.readthedocs.io/zh/latest/api/
#coding=utf-8
import itchat
from itchat.content import TEXT
from itchat.content import *
import sys
import time
import re
reload(sys)
sys.setdefaultencoding('utf8')
import os
itchat.msg_register([TEX