python之路-类、socket编程

抽象接口html class Alert(object): '''报警基类''' def send(self): raise NotImplementedError class MailAlert(Alert): def send(self): #若是子类中没有建立相应的功能时,就会报错。 print('hello wor
相关文章
相关标签/搜索