公告板
版本库
filestore
活动
搜索
登录
main
/
gp-server
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
L2成交数据中使用的队列容量扩大
Administrator
5 天以前
1c04204fcbc958a7bdef2394ff939063e56b6404
[gp-server.git]
/
test
/
test_marshal.py
1
2
3
4
5
6
7
8
9
import marshal
import multiprocessing
if __name__ == '__main__':
bytes = marshal.dumps({"code": 1})
queue = multiprocessing.Queue(maxsize=1024)
queue.put_nowait(bytes)
d=queue.get()
print(marshal.loads(d))