Дудаков Денис Вадимович ИИКБ_119 ClassOnly 15017 | Галустов Артемий Львович, 527 ClassOnly 14658 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
2 | 2 | ||||
3 | class Struct: | 3 | class Struct: | ||
4 | __slots__ = [] | 4 | __slots__ = [] | ||
t | 5 | for char in [''.join(attr) for attr in product(*['abcd'] * 4)]: | t | 5 | for s in [''.join(s) for s in product(*['abcd'] * 4)]: |
6 | setattr(Struct, char, char) | 6 | setattr(Struct, s, s) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|