python 集合元素添加

#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)
原文地址:https://www.cnblogs.com/sea-stream/p/9949599.html