1、背景 socket 服务端一直不停的接收客户端连接,当服务端停止时做一些处理操作,比如从数据表中删除某...
python 多线程Threading模块使用
0、threading类 方法 threading.active_count(): 返回当前存活...
python 调用C# dll类库:pythonnet
1、前提 dll文件的位数与python一致。比如dll文件是32位,python也得是32位。...
python patool 解压缩.rar文件并处理错误could not find an executable program to cr
1、解压缩 安装patool 安装winRAR 示例 p...
python 利用zipfile压缩文件夹
1、目录结构 test kkk ...
unicode转义字符串转中文
例如:"1u697cu897fu8fb9u5ba2u68afu697cu68afu53e3&quo...
fastapi程序用PyInstaller 打包报错: Error loading ASGI app. Could not import m
1、程序 仅有一个main.py 2、起初打包命令 pyinstaller --onefile mai...
python程序打包:pyinstaller
1、安装 pip install pyinstaller 2、创建单个可执行文件.exe:--onefi...
线上405错误:AttributeError: 'Timestamp' object has no attribute 'translate
1、背景: 本地接口测试正常,线上报错。 2、代码 …… cur_time = datetime.n...
python线程池:concurrent.futures.ThreadPoolExecutor
1、什么是线程池? 线程池是一组预先创建的线程,可以用于执行并发任务。这些线程在池中等待任务,并且可以重复...