8
This commit is contained in:
13
8.py
Normal file
13
8.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
from itertools import product, combinations, count
|
||||||
|
|
||||||
|
# Генерируем все пары из двух списков
|
||||||
|
for x in product([1,2], repeat=1):
|
||||||
|
print(x)
|
||||||
|
|
||||||
|
|
||||||
|
from itertools import product
|
||||||
|
print(*(list(product('ЛНРТ', repeat=5))[149]))
|
||||||
|
|
||||||
|
|
||||||
|
from itertools import product
|
||||||
|
print([''.join(p) for p in product('ЛНРТ', repeat=5)][149])
|
||||||
Reference in New Issue
Block a user