随笔分类 -  python threading 模块

摘要:python 线程池和进程池例子 Tips: 风扇可能会呼呼响 import difflib import random import os from concurrent.futures import ThreadPoolExecutor, wait, ProcessPoolExecutor im 阅读全文
posted @ 2023-04-28 00:33 绣幕 阅读(56) 评论(0) 推荐(0)
摘要:threading 模块例子 1. join 的作用 等待线程运行结束 不加 join() import threading import time def get_excute_time(fun): def wrapper(*args): start = time.time() fun(*args 阅读全文
posted @ 2022-08-13 23:31 绣幕 阅读(38) 评论(0) 推荐(0)