用途itertools.combinations:
itertools.combinations
from itertools import combinations for combo in combinations(lst, 2): # 2 for pairs, 3 for triplets, etc print combo