摘要: 利用递归的思想和python的deque,产生一个字符串的所有排列组合 from collections import deque def generate_permutations(string): if len(string) == 1: return deque([string]) permu 阅读全文
posted @ 2018-05-31 20:28 AcodingDog 阅读(750) 评论(0) 推荐(0) 编辑