ThreadPoolExecutor(max_workers=4) inputs = ["a", "aa"] futures = [loop.run_in_executor(executor, long_task, i) for i in inputs] results ...
確定! 回上一頁