Python 集合
copy() 方法用於拷貝一個集合。
copy() 方法語法:
set.copy()
無。
拷貝 fruits 集合:
輸出結果為:
{'cherry', 'banana', 'apple'}