主页
Python
Python 集合
demo_set_update2
运行 ❯
×
更改方向
保存代码
更改主题
set1 = {"a", "b" , "c"} set2 = {1, 2, 3} set1.update(set2) print(set1)