随笔分类 -  python

摘要:import os import re file = r'1.md' # 将博客内容保存至文件 new_file = 'new_'+file pattern = re.compile(r"(\s*)!\[\]\((https://.*png)\)") with open(file, 'r', enc 阅读全文
posted @ 2022-08-26 19:19 areke 阅读(33) 评论(0) 推荐(0) 编辑
摘要:# 合并防疫健康图 import shutil import os from paddleocr import PaddleOCR from PIL import Image, ImageFont, ImageDraw import time # 列出当前目录下所有图片名称 path = os.ge 阅读全文
posted @ 2022-07-25 21:05 areke 阅读(128) 评论(0) 推荐(0) 编辑
摘要:执行命令 pyinstaller -F -w -i python.ico test.py 参数用法 -F生成结果是一个exe文件,所有的第三方依赖、资源和代码均被打包进该exe内 -D生成结果是一个目录,各种第三方依赖、资源和exe 同时存储在该目录 (默认)-a不包含unicode支持-d执行生成 阅读全文
posted @ 2022-07-25 20:37 areke 阅读(1071) 评论(0) 推荐(0) 编辑
摘要:升级pip版本 python -m pip install --upgrade pip 安装库报网络错误问题 我在anaconda里激活我的虚拟环境,然后pip install opencv-python,结果报出这样的错误: WARNING: Retrying (Retry(total=4, co 阅读全文
posted @ 2022-05-06 22:31 areke 阅读(905) 评论(0) 推荐(0) 编辑

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