19.集合 关键字:set 无序的,不重复的集合 作用:不重复特点 声明: list=[2,5,6,1,7,4,5,6,3,2,4,4,6,8,5,2,4] gather1=set(list) print(gather1) gather2={ 2,5,6,2,1,5,4,6,2,8,7,5,6,4,2,1,3