Python_Lib icon indicating copy to clipboard operation
Python_Lib copied to clipboard

你这个Queue是通过什么实现的啊?

Open Light-- opened this issue 4 years ago • 2 comments

看你提到“队列只支持浅拷贝,不支持深拷贝,如果想用深拷贝的话可以使用 heapq ”,请教一下,有能支持深拷贝的能在进程间传递的队列吗? 类似于manager.queue 这种。。。。。。。。manager.queue不支持深拷贝,所以我想找能支持的。。。。或者有别的东西能在进程间方便的传递大量数据(图像数组那种)的也行

Light-- avatar Mar 27 '20 10:03 Light--

Queue 是标准库的吖。在 python2 中是 Queue,在 python3 中是 queue

官方文档 Queue

然后深拷贝的话,可以试下 copy.deepcopy

windard avatar Mar 29 '20 11:03 windard

然后深拷贝的话,可以试下 copy.deepcopy

copy.deepcopy不行。。拷贝不了

Light-- avatar Mar 30 '20 00:03 Light--