摘要: def perm(s=''): if len(s) <= 1: return [s] sl = [] for i in range(len(s)): for j in perm(s[0:i] + s[i + 1:]): sl.append(s[i] + j) return sl def main(): ... 阅读全文
posted @ 2019-05-15 16:52 cup_leo 阅读(145) 评论(0) 推荐(0) 编辑