python 集合清空

setp = set(["Red", "Green"])  
setq = setp.copy()  
print(setq)  
setp.clear()  
print(setq)
原文地址:https://www.cnblogs.com/sea-stream/p/9949636.html