小白教程
所有教程
关于
Search
172.71.254.94
172.71.254.94
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Ref set copy”的源代码
本页内容
上一节:
Ref_set_clear
下一节:
Ref_set_difference
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:copy()}}[[Category:python3 set|3]] = Python Set copy()方法 = [[python3 set#setmethod|Python 集合]] == 描述 == copy() 方法用于拷贝一个集合。 == 语法 == copy() 方法语法: <sample title="" desc="" lang="python" hererun="1"> set.copy() </sample> == 参数 == * 无。 == 返回值 == 返回拷贝的集合。 拷贝 fruits 集合: == 实例 1 == <sample title="" desc="" lang="python" hererun="1"> sites = {"Google", "xiaoBai", "Taobao"} x = sites.copy() print(x) </sample> 输出结果为: <sample title="" desc="" lang="python" hererun="1"> set(['Google', 'Taobao', 'xiaoBai']) </sample> [[python3 set#setmethod|Python 集合]]
返回至“
Ref set copy
”。
上一节:
Ref_set_clear
下一节:
Ref_set_difference