03 2024 档案
摘要:utils.py: import functools import re from datetime import datetime, timedelta from typing import Union # pip install python-dateutil from dateutil imp
阅读全文
摘要:FastDFS(https://github.com/happyfish100/fastdfs/wiki)推荐的nginx启动方式是直接执行/usr/local/nginx/sbin/nginx 如果配成用systemctl管理的话,更符合常规使用习惯,而且可以设为开机启动,具体如下: /lib/s
阅读全文
摘要:代码如下: from io import BytesIO from pathlib import Path from typing import Annotated, Literal, Optional, Tuple, Union # pip install pillow opencv-python
阅读全文