📜  python 组合 - Python 代码示例

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

代码示例6
from itertools import combinations

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