摘要: code import os import time from concurrent.futures.thread import ThreadPoolExecutor def test(n): print(f'n:{n}-os.getpid:{os.getpid()}') time.sleep(2) 阅读全文
posted @ 2023-10-24 16:48 tslam 阅读(6) 评论(0) 推荐(0) 编辑
摘要: code import os import time from concurrent.futures.process import ProcessPoolExecutor def test(n): print(f'n:{n}-os.getpid:{os.getpid()}') time.sleep( 阅读全文
posted @ 2023-10-24 16:24 tslam 阅读(3) 评论(0) 推荐(0) 编辑