主页
Python
Python frozenset 冻结集
demo_frozenset_union
运行 ❯
×
更改方向
保存代码
更改主题
a = frozenset({1, 2}) b = frozenset({2, 3}) print(a.union(b)) print(a | b)
frozenset({1,2,3})
frozenset({1,2,3})