📜  python 字符串的所有排列 - Python 代码示例

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

代码示例2
>>> from itertools import permutations
>>> perms = [''.join(p) for p in permutations('stack')]
>>> perms