Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net IronPython中的deepcopy_.net_Ironpython_Deep Copy - Fatal编程技术网

.net IronPython中的deepcopy

.net IronPython中的deepcopy,.net,ironpython,deep-copy,.net,Ironpython,Deep Copy,我想用IronPython做一个deepcopy,但是当我写 import copy 我没有得到名为copy的模块 如何使用IronPython进行深度复制 使用,然后在安装程序中选择标准库选项。 我的安装中的一个示例: IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.4927 Type "help", "copyright", "credits" or "license" for more information. >>>

我想用IronPython做一个deepcopy,但是当我写

import copy 
我没有得到名为copy的模块

如何使用IronPython进行深度复制

使用,然后在安装程序中选择标准库选项。 我的安装中的一个示例:

IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.4927
Type "help", "copyright", "credits" or "license" for more information.
>>> import copy
>>> help(copy.deepcopy)
Help on function deepcopy in module copy:

deepcopy(x, memo=None, _nil=[])
    Deep copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.

>>> copy.deepcopy(range(5))
[0, 1, 2, 3, 4]
>>>