📅  最后修改于: 2022-03-11 14:45:13.012000             🧑  作者: Mango
from itertools import combinations
lst = ["a" ,"b", "c"]
lengthOfStrings = 3
for i in combinations(lst, lengthOfStrings):
print(i)