R3
И импортить потом
Size: a a a
R3
БГ
B
py3
class Custom(dict):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.__dict__ = self
c = Custom()
c['a'] = True
c.b = False
c.update({'ab': 0})
print(c.a, c.b, c.ab)
True False 0
А
q
БГ
БГ
БГ
q
БГ
q
БГ
q
q
q
q
БГ
q
q