[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']]
>>>
网友评论