python 集合删除元素

#Create a new set  
num_set = set([0, 1, 2, 3, 4, 5])  
#Discard number 4  
num_set.discard(4)  
print(num_set)
原文地址:https://www.cnblogs.com/sea-stream/p/9956383.html