网站做彩票页面设计
此代码来自知乎某评论下的大神发言,python一行流,装逼必备。
from functools import reducea, b = ['A','C','T', 'G'], 5 # 4种字符,匹配5种字符print(reduce(lambda x, y:[z0 + z1 for z0 in x for z1 in y], [a] * b))
此代码来自知乎某评论下的大神发言,python一行流,装逼必备。
from functools import reducea, b = ['A','C','T', 'G'], 5 # 4种字符,匹配5种字符print(reduce(lambda x, y:[z0 + z1 for z0 in x for z1 in y], [a] * b))