Python multiprocessing Pool map()实例
需求:并行处理某个目录下文件中的字符个数和行数,存入res.txt文件中
# coding=utf-8
import os
import time
import logging
from multiprocessing import Pool
x1, x2 = 3, 7
logging.basicConfig(
level=logging.INFO,
format="%(asc...
转载
2019-12-11 23:33:57 ·
698 阅读 ·
0 评论