def __init__(self, path=""):
self.path = path
def __getattr__(self, path):
self.path = '%s/%s' % (self.path, path)
return self
def __str__(self):
return self.path
__repr__ = __str__
print(Method().status.user.list)
Sign in to make a reply
风
def __init__(self, path=""):
self.path = path
def __getattr__(self, path):
self.path = '%s/%s' % (self.path, path)
return self
def __str__(self):
return self.path
__repr__ = __str__
print(Method().status.user.list)