使用 set() 构造函数创建一个集合:fruitsset = set(("apple", "banana", "cherry")) print(fruitsset)执行结果:{'banana', 'apple', 'cherry'}