python 之线程池传入多个参数的方法 ThreadPoolExecutor.submit 多参数支持
fromconcurrent.futuresimportThreadPoolExecutor,as_completeddef doFileParse(filepath,segment,wordslist):print(filepath)print(segment)#调用方法#实质就是通过lambda表达式过渡。传入的参数是一个,但是通过lambda表达多后拆散为多个传入。这是很巧妙的方法,实际就是