Ван Цзыци, 614 группа ClassOnly 15133 | Чэнь Сюаньдун, 619/2 группа ClassOnly 15042 | ||||
---|---|---|---|---|---|
t | 1 | from itertools import product | t | 1 | from itertools import product |
2 | ss = set((''.join(seq) for seq in product('abcd', repeat=4))) | 2 | ss = set((''.join(seq) for seq in product('abcd', repeat=4))) | ||
3 | 3 | ||||
4 | class Struct(object): | 4 | class Struct(object): | ||
5 | __slots__ = () | 5 | __slots__ = () | ||
6 | 6 | ||||
7 | def __getattribute__(self, item): | 7 | def __getattribute__(self, item): | ||
8 | if item in ss: | 8 | if item in ss: | ||
9 | return item | 9 | return item | ||
10 | else: | 10 | else: | ||
11 | raise AttributeError | 11 | raise AttributeError |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|