1:集合 set
set的特性:(1)無序(2)不重複
set的定義:{1,2,3,4,5}
type({1,2,3,4,5}) print為:<class 'set'>
set的操作: (1):取長度 len({1,2,3,4,5})
(2):判斷是否值存在 1 in {1,2,3,4,5} ----- 1 not {1,2,3,4,5}
(3):求2個集合的差集 - {1,2,3,4} - {3,4} print {1,2}
(4):求2個集合的交集 & {1,2,3,4} & {3,4} print {3,4}
(5):合集/並集 | {1,2,3,4} | {3,4,5} print {1,2,3,4,5}
(6):空集 set() type(set()) print 0
2:字典 dic :key value (無序)
簡單理解就是:通過key 取value
dic 定義 {key:value,key..n:value..n}
key:必須是不可變型別
value: set int float list dict 不支援tuple

基本資料型別總結:
