批量命名-递增版

This Python script renames images in a specified directory and records the changes in Excel files, supporting both prefixed and non-prefixed naming. The script uses a unique counting method to avoid duplicate filenames and saves renaming records for future reference.


一键打包

This Python script backs up a specified directory, deletes certain files or directories, and compresses the backup into a ZIP file. It defines functions and paths for the original directory, objects to delete, backup directory, and zip file path, then executes the backup and deletion.


Markdown批量插入图片

背景 分享漫画时图片过多,插入过慢。 前置 文件名必须为x-001.webp形式,后缀可自行更改,这里没有适配。 路径可自行更改,以z替换。


图片批量命名-时间升序-覆盖&另存

该文章提供了两个Python函数用于批量重命名图片文件,并按时间升序排列。第一个函数`rename_file`接受目标目录、输出目录和是否覆盖参数,第二个函数`rename_file`接受前缀参数以添加自定义前缀。两个函数均支持覆盖原有文件或另存新文件。


图片批量命名-时间升序

This Python script renames and reorders image files in a specified directory based on their modification time. It supports both prefix-less and prefix-based renaming. The script copies the files to an output directory with new names sequentially from 001.


python脚本打包成.exe可执行文件

This article provides a guide for packaging Python scripts into standalone executable files using PyInstaller. It covers how to install the tool, create a script with functions to detect duplicate files, and package the script into a .exe file. The process is ideal for distributing and running Python applications on Windows platforms.


处理重复文件

This Python script finds and handles duplicate files in a given directory. It calculates file hashes to identify duplicates, then deletes or moves them based on specified actions. The script walks through the directory, checks file hashes, and processes duplicates accordingly.


图片批量命名+webp转换

This Python script renames and converts PDF files in a directory to WebP format. It first renames images with a prefix and number, then converts them to WebP. If the new name already exists, it skips the file. The script also supports renaming images without a prefix and converting them to WebP.


图片批量转webp

The article discusses the process of converting images to WebP format using Python, addressing the limitations of online tools such as speed and convenience. It provides a Python script that bulk converts images from PNG, JPG, and JPEG to WebP format, suitable for high-quality image display. The code creates an output directory, iterates through source images, and saves each file as a WebP, ensuring efficient and user-friendly conversion.


阿里云maven-MySQL依赖避坑

在使用阿里云Maven仓库时,尝试拉取MySQL依赖`mysql:mysql-connector-java`时遇到错误,提示无法找到该依赖。错误原因是仓库中未找到该依赖,且本地缓存未更新。解决方法是将依赖替换为`com.mysql:mysql-connector-j`,并建议使用`-U`标记强制更新Maven快照以解决问题。