def thread_function():
logging.info("Thread %s: starting")
time.sleep(2)
logging.info("Thread %s: finishing")
with concurrent.futures.ThreadPoolExecutor(3) as executor:
executor.map(thread_function)
如果 thread_function 没有参数的话,executor.map 是不是应该没有第二个参数.