partial 生成偏函数
concurrent.futures的map函数
with futures.ThreadPoolExecutor() as executor:
函数名 = partial(待处理函数,相关参数,可以为整数,字符串,可迭代对象)
executor.map(函数名,可迭代对象)
作者:刘瀚阳
微信扫一扫
partial 生成偏函数
concurrent.futures的map函数
with futures.ThreadPoolExecutor() as executor:
函数名 = partial(待处理函数,相关参数,可以为整数,字符串,可迭代对象)
executor.map(函数名,可迭代对象)
作者:刘瀚阳
相关推荐