Python 集合 copy() 方法实例定义和用法语法参数值Python 集合 copy() 方法实例复制 fruits 集合: fruits = {"apple", "banana", "cherry"} x = fruits.copy() print(x) 定义和用法copy() 方法复制集合。 语法set.copy() 参数值无参数。