📜  python所有可能的对 - Python代码示例

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

代码示例1
list(itertools.combinations(iterable, r))
Return r length subsequences of elements from the input iterable.

Combinations are emitted in lexicographic sort order. 
So, if the input iterable is sorted, 
the combination tuples will be produced in sorted orde