學習筆記(06):Python 面試100講(基於Python3.x)-集合之間的並集與交集

當即學習:https://edu.csdn.net/course/play/26755/340119?utm_source=blogtoedu學習 1. 集合添加、刪除元素:.net     a = {1,2,3};blog     a.add(x);rem     a.remove(x)  ---x不在集合中會拋錯;get     x in a: 判斷是否在集合中;io 2. 集合的並集、交集、
相關文章
相關標籤/搜索