yield学习笔记

参考:http://www.dabeaz.com/finalgenerator/ from concurrent.futures import ThreadPoolExecutor import time pool = ThreadPoolExecutor(max_workers=8) def func(x, y): time.sleep(5) return x, y def
相关文章
相关标签/搜索