标签:cme ipa abs python 实现 import 方法 ali bst
from abc import ABCMeta, abstractmethod class Payment(metaclass=ABCMeta): @abstractmethod def pay(self): pass class Alipay(Payment): def pay(self): print(‘阿里pay‘) class AA(Payment): def fukuan(self): print(‘没有调用pay方法‘) alipay = Alipay() alipay.pay() aa = AA() aa.fukuan() # 报错
标签:cme ipa abs python 实现 import 方法 ali bst
原文地址:https://www.cnblogs.com/zjj1990/p/12916519.html