class Chain(): def init(self,path=''): self._path = path def getattr(self, item): if item == 'users': return lambda x: Chain('%s/%s' % (self._path,x)) return Chain('%s/%s' % (self._path,item)) def str(self): return self._path repr=str
print(Chain().status.users('wanglei').timeless.list)
Sign in to make a reply
王日天95
class Chain(): def init(self,path=''): self._path = path def getattr(self, item): if item == 'users': return lambda x: Chain('%s/%s' % (self._path,x)) return Chain('%s/%s' % (self._path,item)) def str(self): return self._path repr=str
print(Chain().status.users('wanglei').timeless.list)