📜  获取列表 python 代码示例的所有子集

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

代码示例1
a_set = {"a", "b", 1, 2}
data = itertools.combinations(a_set, 2)
subsets = set(data)
print (subsets)