摘要:
# 通过Unicode范围来判断字符语言,要注意的是繁中和简中有很多重叠的,解决办法就是检测出来繁体字了,在经过判断是否是简体字判断,要用到库hanzidentifier,也不要用hanzidentifier.is_traditional()判断繁体判断, # 很多简体字符简繁都会为true,例如' 阅读全文
posted @ 2025-12-29 20:25
树下黑猫
阅读(1)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- # 实现一个可控的生成器流处理系统,核心目标是提供对生成器执行的动态控制能力(暂停、恢复、停止) import time class Test: def __init__(self,size:str): self.size = size pass de 阅读全文
posted @ 2025-12-29 18:56
树下黑猫
阅读(4)
评论(0)
推荐(0)
摘要:
# 核心目的是提供异步任务执行、回调处理和任务状态管理功能 from concurrent.futures import ThreadPoolExecutor,as_completed import time import threading from types import MethodType 阅读全文
posted @ 2025-12-29 18:47
树下黑猫
阅读(3)
评论(0)
推荐(0)

浙公网安备 33010602011771号