my_list=['黑马程序员','传智播客','黑马程序员','传智播客','itheima','itcast','itheima','itcast','best']my_set=set()for element in my_list: my_set.add(element)print(f"由列表:{my_list}存入集合后结果:{my_set}")