Python基礎-集合基礎知識點

集合 a=[1,2,3,4,5,5,6,6,6,7] b=set(a) #去掉重複的元素 print(b,type(b)) c=(1,1,2,2,2,3,3,4,4,5) d=set(c) print(d,type(d)) e='12342435653' f=set(e) print(f,
相關文章
相關標籤/搜索