摘要:
from multiprocessing import Pool,Manager import os,time def copyFileTask(fileName,oldFolderName,newFolderName,queue): fr = open(old... 阅读全文
posted @ 2018-01-10 02:27
fonyer
阅读(245)
评论(0)
推荐(0)
摘要:
MongoDB下载地址:https://www.mongodb.com/download-center?_ga=2.98072543.1777419256.1515472368-391344272.1515472368#community1、解压tar -zxvf m... 阅读全文
posted @ 2018-01-10 02:24
fonyer
阅读(266)
评论(0)
推荐(0)
摘要:
实例1:消息队列Queue,不要将文件命名为“queue.py”,否则会报异常“ImportError: cannot import name 'Queue'”#coding=utf-8from multiprocessing import Queue q = Qu... 阅读全文
posted @ 2018-01-10 02:22
fonyer
阅读(1068)
评论(0)
推荐(0)
摘要:
#fork在window下不支持import osimport timeimport sys pid = os.fork()if pid == 0:#子进程 time.sleep(5) print('After 5 seconds') ... 阅读全文
posted @ 2018-01-10 02:17
fonyer
阅读(164)
评论(0)
推荐(0)
浙公网安备 33010602011771号