#A new empty set color_set = set() color_set.add("Red") print(color_set) #Add multiple items color_set.update(["blue","blue", "Green"]) print(color_set)
python 集合元素添加
原文:https://www.cnblogs.com/sea-stream/p/9949599.html