多线程统计大量小文件的行数
准备40个文件,开启40个线程。import threadingimport timecount=0;class go(threading.Thread): def __init__(self,index): threading.Thread.__init__(self) self.index=index……
02-10 立刻查看
准备40个文件,开启40个线程。import threadingimport timecount=0;class go(threading.Thread): def __init__(self,index): threading.Thread.__init__(self) self.index=index……