Александр Репин, 528 группа ClassOnly 15162 | Крет Вячеслав Александрович, 321 группа ClassOnly 14340 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
n | 2 | s = {''.join(x) for x in product('abcd', repeat=4)} | n | 2 | example = {''.join(i) for i in product('abcd', repeat=4)} |
3 | 3 | ||||
4 | class Struct: | 4 | class Struct: | ||
n | 5 | __slots__ = [] | n | 5 | __slots__ = () |
6 | 6 | ||||
t | 7 | def __getattribute__(self, a): | t | 7 | def __getattribute__(self, item): |
8 | if a in s: | 8 | if item in example: | ||
9 | return a | 9 | return item | ||
10 | else: | ||||
11 | raise AttributeError | 10 | raise AttributeError |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|