随笔分类 -  笔记-python

摘要:参考例子 https://pymupdf.readthedocs.io/en/latest/installation.html 操作 命令 创建并激活环境 python -m venv xenv; source xenv/bin/activate 安装包 pip install xxx 退出环境 e 阅读全文
posted @ 2024-11-19 23:22 LiYanbin 编辑
摘要:https://segmentfault.com/a/1190000039773026 阅读全文
posted @ 2024-07-29 12:36 LiYanbin 阅读(0) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-12-23 12:11 LiYanbin 阅读(12) 评论(0) 推荐(0) 编辑
摘要:import sys import traceback def print_traceback(): '打印通常的回溯信息,且附有每帧中的局部变量的列表' tb=sys.exc_info()[2] #返回当前异常的(type,value,traceback) while tb.tb_next: tb 阅读全文
posted @ 2023-07-13 11:11 LiYanbin 阅读(119) 评论(0) 推荐(0) 编辑
摘要:PYTHON随笔-logging import logging from logging.handlers import RotatingFileHandler gLogFile = '/var/log/dbm_py.log' LOG_FORMAT = "%(asctime)s [%(levelna 阅读全文
posted @ 2023-07-13 09:21 LiYanbin 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示