from abc import ABCMeta, abstractmethod class DataSet(object): __metaclass__ = ABCMeta def __init__(self): print("Abstract DataSet") @abstractmethod def read(self, conf): pass @abstractmethod def write(self, conf): pass
时间: 2024-10-29 19:12:14
from abc import ABCMeta, abstractmethod class DataSet(object): __metaclass__ = ABCMeta def __init__(self): print("Abstract DataSet") @abstractmethod def read(self, conf): pass @abstractmethod def write(self, conf): pass