美文网首页
pyspider源代码-run.py copy模块

pyspider源代码-run.py copy模块

作者: comboo | 来源:发表于2017-03-26 17:30 被阅读33次

[run文档]https://github.com/binux/pyspider/blob/master/pyspider/run.py

import os
import sys
import six
import copy
import time
import shutil
import logging
import logging.config
import click
import pyspider

copy

copy.deepcopy()

Return a deep copy of x.
返回一个深拷贝,就是,对象以及对象所指向的所有对象都重新建立。

>>> a = [1,2,3,4,['a']]
>>> import copy
>>> b = copy.copy(a)
>>> c = copy.deepcopy(a)
>>> a[4].append('b')
>>> b
[1, 2, 3, 4, ['a', 'b']]
>>> c
[1, 2, 3, 4, ['a']]
>>> 

相关文章

网友评论

      本文标题:pyspider源代码-run.py copy模块

      本文链接:https://www.haomeiwen.com/subject/ofukottx.html