- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 读写文件,多进程和多线程的一些总结
# coding:utf-8"""把大文件分块big_file.txt 是一个500M的5位数的乱序文档多线程并没有提升速度"""import timetxtfile = ''import threadingdef txtmap(txtup): with open('big_file.txt','r') as f: i = 0 while i < 100000: txt = f.re...
2018-05-12 21:27:27
2855
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人