我们可以从Python 3中的itertools.product结果中获取特定索引中的元素吗?像下面这样:
xlist = itertools.product('abc', repeat=3) element = xlist[10]
更新 整个问题颠倒了!我发现生成所有集合并查找索引是一个很大的错误!我查看了我的问题可能的重复项,但没有得到答案!
python python-itertools
python ×1
python-itertools ×1