Крет Вячеслав Александрович, 321 группа ClassOnly 14340 | Иван Сеченых, 521 (асвк+мк+мс) ClassOnly 15136 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
n | 2 | example = {''.join(i) for i in product('abcd', repeat=4)} | n | 2 | check = {''.join(q) for q in product('abcd', repeat=4)} |
3 | 3 | ||||
4 | class Struct: | 4 | class Struct: | ||
5 | __slots__ = () | 5 | __slots__ = () | ||
6 | 6 | ||||
t | 7 | def __getattribute__(self, item): | t | 7 | def __getattribute__(self, name): |
8 | if item in example: | 8 | if name in check: | ||
9 | return item | 9 | return name | ||
10 | raise AttributeError | 10 | raise AttributeError() |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|