假设我有一个集合列表,我想获得该列表中所有集合的联合.有没有办法使用生成器表达式?换句话说,我怎么可以创建在所有集合的并集在该列表中直接作为frozenset?
frozenset
python generator set
generator ×1
python ×1
set ×1