HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
multiprocessing 问题
代码: python import multiprocessing import time class a: def init(self) None: self.c
#!/bin/zsh
·
3 years ago
#include __FILE__
py中多进程进程间不共享变量,各自一个拷贝,这一点可以用id函数验证,然后可以通过管道、Manager等方式解决数据共享问题
1
Reply
Report
#!/bin/zsh
Joined 3 years ago
#include __FILE__
127.0.0.1
Follow
Message