Mar-20-2022, 06:05 PM
why make your code complicated?
why not:
why not:
class Outer(object): def __init__(self): self.a = 111 print(f"Outer.a = {Outer().a}")
Output:Outer.a = 111