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