
我用Python
文章平均质量分 60
Python
zerothy
西安交通大学本科生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何从sys.path中永久删除某个路径
问题描述:由于某些安装失误或者其他原因导致sys.path 中添加了不想要的路径原因分析:参考site得知:A path configuration file is a file whose name has the form name.pth and exists in one of the four directories mentioned above; its contents are additional items (one per line) to be added to sys.pa原创 2021-06-08 10:00:22 · 5868 阅读 · 3 评论 -
Python记录
临时使用清华源安装packagepip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy原创 2020-03-01 03:23:37 · 166 阅读 · 0 评论 -
Python批量自定义文件夹图标
为了使用方便,很多文件夹存放了很多照片,通过文件名很难记住相关文件夹内容,因此利用python批量修改文件夹图标为该文件夹内第一张照片,方便记忆和管理。处理前:处理后:前期准备:python运行环境及基本语法,安装第三方库 下载Quick_Any2Ico【下载链接】并与脚本放在同一目录代码主要分为三块:对目录进行遍历,获取子文件夹下的图片文件并生成图标文件 .ico...原创 2019-03-30 17:06:48 · 2825 阅读 · 1 评论 -
Python 创建加密压缩文件
Python 创建加密压缩文件1. 配置ZLibhttp://www.winimage.com/zLibDll/minizip.html下载之后将 zlibwapi.dll 放在 demo/目录下,与 minizip.exe 一起使用2. 命令行使用 minizip.exe>minizip.exeMiniZip 1.01b, demo of zLib ...原创 2019-11-05 00:34:39 · 5136 阅读 · 1 评论