摘要: 1 from abc import ABCMeta, abstractmethod 2 3 class Payment(metaclass=ABCMeta):#继承抽象类约束 4 @abstractmethod 5 def pay(self,money): 6 pass 7 8 9 class Al 阅读全文
posted @ 2018-03-16 14:54 莫柔落切 阅读(270) 评论(0) 推荐(0) 编辑