Python 集合方法
復制 fruits 集合:
fruits = {"apple", "banana", "cherry"} x = fruits.copy() print(x)
運行實例
copy() 方法復制集合。
set.copy()
無參數。