from abc import *
class Base(ABC):
@abstractmethod
def run(self):
print('haha')
class Child(Base):
def run(self):
print('haha')
혹은
from abc import *
class Base(metaclass-ABCmeta):
@abstractmethod
def run(self):
print('haha')
class Child(Base):
def run(self):
print('haha')