單個項目中對上層的包的調用是很差的python
pythonclass A: def __init__(self): self.a = 'a' a = A() setattr(a, 'a', 'b') >>> a.a 'b'
@staticmethod