随笔分类 - 笔记-python
摘要:参考例子 https://pymupdf.readthedocs.io/en/latest/installation.html 操作 命令 创建并激活环境 python -m venv xenv; source xenv/bin/activate 安装包 pip install xxx 退出环境 e
阅读全文
摘要:https://segmentfault.com/a/1190000039773026
阅读全文
摘要:docker-compose.yml version: "3" services: python-dev-env: image: python:3.6.15-slim-buster restart: always container_name: py3-dev-env network_mode: h
阅读全文
摘要:import sys import traceback def print_traceback(): '打印通常的回溯信息,且附有每帧中的局部变量的列表' tb=sys.exc_info()[2] #返回当前异常的(type,value,traceback) while tb.tb_next: tb
阅读全文
摘要:PYTHON随笔-logging import logging from logging.handlers import RotatingFileHandler gLogFile = '/var/log/dbm_py.log' LOG_FORMAT = "%(asctime)s [%(levelna
阅读全文