All Permutations

All Permutations

给定一个字符串,按字母顺序返回所有可能的permutations 字符。

example

输入:字符串 (str).

输出: 可迭代 (Iterable)的字符串 (str).

示例

assert list(string_permutations("ab")) == ["ab", "ba"]
assert list(string_permutations("abc"))...
You should be an authorized user in order to see the full description and start solving this mission.