摘要:
from abc import ABCMeta,abstractmethod class Payment(metaclass=ABCMeta): # abstract class @abstractmethod def pay(self, money): pass class Alipay(Paym 阅读全文
摘要:
from abc import ABCMeta, abstractmethod # 接口 class Payment(metaclass=ABCMeta): #abstract class @abstractmethod def pay(self, money): pass #继承Payment这个 阅读全文
摘要:
有了实现就不会出错了: 阅读全文