如果我的函数是这种 怎么传参
aa(self, sout_abs_path, dyInterp, ltInterp_keys=None, dyattr=None)
with ThreadPoolExecutor(max_workers=2) as executor:
for sOut_abs_path, dyInterp_time[iIfh], dyCommon_Para["Interp_keys"] in ltcycle:
res = executor.submit(lambda Input:self.dmulti_WS3_Interp(*Input),(sOut_abs_path, dyInterp_time[iIfh], dyCommon_Para["Interp_keys"]))
kk = res.result()
报错:TypeError: dmulti_WS3_Interp() takes exactly 2 positional arguments (4 given)
【 在 iMx 的大作中提到: 】
: 用这个
: from concurrent.futures import ThreadPoolExecutor
: with ThreadPoolExecutor(max_workers=2) as thd:
: ...................
--
FROM 114.247.188.*