Python 3 教程
Python 集合
copy() 方法用于拷貝一個(gè)集合。
copy() 方法語(yǔ)法:
set.copy()
無(wú)。
拷貝 fruits 集合:
輸出結(jié)果為:
{'cherry', 'banana', 'apple'}