📜  python 创建一个运行所有可能组合的程序 - Python 代码示例

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

代码示例1
from itertools import combinations

lst = ["a" ,"b", "c"]
lengthOfStrings = 3
for i in combinations(lst, lengthOfStrings):
  print(i)