[
如何使用python中上面给出的随机选择的字母网格对下面给出的二进制网格的位置进行混洗?
获取这些网格的python代码是
import itertools
n = 4
lst = list(itertools.product([1, 0], repeat=n))
print('The 4*4 Binary grid is : ')
print('')
for row in range(4):
for col in range(4):
print(lst.pop(), end=' ')
print()
print('')
print('The 4*4 DNA grid is : ')
print('')
perm = list(itertools.product('CTGA', repeat=2))
for row in range(4):
for col in range(4):
print(perm.pop(), end=' ')
print()