2018年8月26日参考别人的对四种组合数据类型的操作

https://blog.csdn.net/xiyouxiaotang/article/details/81071176

集合的处理方式:

S.discard(x) 移除S中元素x,如果x不在集合S中,不报错
S.remove(x) 移除S中元素x,如果x不在集合S中,报错KeyError

猜你喜欢

转载自blog.csdn.net/qq_40994972/article/details/82084367