Мозговых Василий Владимирович, 401 группа ClassOnly 14604 | Горошко Артём Дмитриевич, 321 группа ClassOnly 15203 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
n | 2 | slots = set((''.join(abcd) for abcd in product('abcd', repeat=4))) | n | 2 | arr = set((''.join(i) for i in product('abcd', repeat=4))) |
3 | 3 | ||||
4 | class Struct: | 4 | class Struct: | ||
n | 5 | __slots__ = set() | n | 5 | __slots__ = tuple() |
6 | 6 | ||||
t | 7 | def __getattribute__(self, attr): | t | 7 | def __getattribute__(self, name): |
8 | if attr in slots: | 8 | if name in arr: | ||
9 | return attr | 9 | return name | ||
10 | else: | 10 | else: | ||
11 | raise AttributeError | 11 | raise AttributeError |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|