09 2019 档案
python 多进程读写文件
摘要:import time from multiprocessing import Process, JoinableQueue, cpu_count import csv ####处理一条数据的方法 def deal_line(line, writer, csv_file): writer.writerow((line[3], line[1])) csv_file.flush()#重点,在多进程中写 阅读全文
posted @ 2019-09-04 18:10 hailuo 阅读(6604) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示