📜  python itertools.permutations 使用太多内存 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:17.033000             🧑  作者: Mango

代码示例1
a = [1, 2, 3]
n = 3
heapPermutation(a, n, n)
print()

perm_iterator = itertools.permutations(a)

for item in perm_iterator:
    print(item)