您需要删除
*的
map电话:
args = ((a, b) for b in c)for result in executor.map(f, args): pass
这将调用
f,
len(args)时间,
f应在何处接受一个参数。
在Linux上 ,如果要
f接受两个参数,则可以使用lambda调用,例如:
args = ((a, b) for b in c)for result in executor.map(lambda p: f(*p), args): # (*p) does the unpacking part pass



