Python3 集合Python3 集合 copy()方法本页总览Python3 集合 copy()方法描述copy() 方法用于拷贝一个集合。语法copy() 方法语法:set.copy()参数无。返回值无。实例拷贝 fruits 集合:实例 1fruits = {"apple", "banana", "cherry"}x = fruits.copy()print(x)输出结果为:{'cherry', 'banana', 'apple'}