元素不能重复且无序!
因此,不支持下标索引访问!
my_list = ['黑马程序员', '传智播客', '黑马程序员', '传智播客', 'itheima', 'itcast', 'itheima', 'itcast', 'best'] my_set = set() for each in my_list: my_set.add(each) print(my_set)