python 集合删除元素

#Create a new set  
num_set = set([0, 1, 2, 3, 4, 5])  
#Discard number 4  
num_set.discard(4)  
print(num_set)

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/9956383.html