擅长:python、mysql、java
<p><a href="https://gist.github.com/mangecoeur/9540178" rel="nofollow noreferrer">https://gist.github.com/mangecoeur/9540178</a>
<a href="https://docs.python.org/3.4/library/concurrent.futures.html" rel="nofollow noreferrer">https://docs.python.org/3.4/library/concurrent.futures.html</a></p>
<p>与concurrent.futures.processPool执行器()作为执行人:
结果=执行者.map(函数,iterable)</p>
<p>你知道吗执行者.map(有趣,[数据]*10)</p>
<p>池=多处理池()
池.map(…)</p>
<p>与并发.futures.ThreadPoolExecutor()作为执行人:
结果=执行者.map(函数,iterable)</p>