📅  最后修改于: 2022-03-11 14:47:17.033000             🧑  作者: Mango
a = [1, 2, 3]
n = 3
heapPermutation(a, n, n)
print()
perm_iterator = itertools.permutations(a)
for item in perm_iterator:
print(item)