在学习Python过程中,看到了生成虚基类的方式, class PeopleBase(six.with_metaclass(ABCMeta, object)): @abstractmethod def work(self, *args, **kwargs): #pass为空语句,占位用 pass @abstractmethod def live(self, *args, **kwargs): pass 对于six.with_metaclass(ABCMeta, object)不太理解,找了些资料…