https://markdown-1303167219.cos.ap-shanghai.myqcloud.com/57000045

伤心肠粉的酱油碟子

loguru

loguru 比 logging 更加轻便简单的日志记录器 基本使用 1 2 3 4 5 6 7 8 9 10 11 from loguru import logger import os import time LOG_FOLDER =

pyinstaller

pyinstaller 步骤 在 cmd 中使用命令找到 py 程序所在目录 使用命令 1 pyinstaller -F <name>.py ​ dist 文件夹中的 exe 即为我们所

pyinstrumen

pyinstrument Profile a Python script Call Pyinstrument directly from the command line. Instead of writing python script.py, type pyinstrument script.py. Your script will run as normal, and at the end (or when you press ^C), Pyinstrument will output a colored summary showing where most of the time was spent.