python(31):set、屬性property、類的私有化

1、集合set 集合與以前列表、元組相似,能夠存儲多個數據,可是這些數據是不重複的函數 集合對象還支持union(聯合), intersection(交), difference(差)和sysmmetric_difference(對稱差集)等數學運算.spa >>> x = set('abcd') >>> x {'c', 'a', 'b', 'd'} >>> type(x) <class 'set
相關文章
相關標籤/搜索