子类继承了抽象类
必须实现父类的方法,否则实例化时报错
import abc class AbsClass(metaclass=abc.ABCMeta): @abc.abstractclassmethod def fun1(self): pass @abc.abstractclassmethod def fun2(self): pass class obj1(AbsClass): def fun1(self): pass def fun2(self): pass class obj2(AbsClass): pass a=obj1()