摘要:
class Chain(object): def __init__(self, path=''): self._path = path def __getattr__(self, path): return Chain('%s/%s' % (self._path, path)) def __str_ 阅读全文
posted @ 2018-09-14 15:36
只记今朝笑
阅读(379)
评论(0)
推荐(0)
摘要:
多态代码实现:class Animal(object): def __init__(self, name): # Constructor of the class self.name = name def talk(self): # Abstract method, defined by conve 阅读全文
posted @ 2018-09-14 11:19
只记今朝笑
阅读(374)
评论(0)
推荐(0)

浙公网安备 33010602011771号