摘要: 参考书:《大话设计模式》程杰 #简单工厂模式 class Operation: #运算抽象类(接口) python中没有interface概念,可以用class 代替,C++中要用 interface Operation(){} 的方式定义接口 num1 = 0 num2 = 0 def getRe 阅读全文
posted @ 2020-10-20 17:07 94小渣渣 阅读(82) 评论(0) 推荐(0) 编辑