单个项目中对上层的包的调用是很差的python
pythonclass A: def __init__(self): self.a = 'a' a = A() setattr(a, 'a', 'b') >>> a.a 'b'
@staticmethod