Комаров Антон Михайлович, 503 группа ClassOnly 13797 | Александр Смирнов 522 ClassOnly 13982 | ||||
---|---|---|---|---|---|
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 i in product('abcd', repeat=4): | t | 5 | for comb in product('abcd', repeat=4): |
6 | setattr(Struct, ''.join(i), ''.join(i)) | 6 | setattr(Struct, ''.join(comb), ''.join(comb)) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|