部分内容源自网络,侵删,联系请看关于或声明。

图片批量命名-时间升序

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.

thumbnail of the cover of the post

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.

thumbnail of the cover of the post

处理重复文件

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.

thumbnail of the cover of the post

图片批量命名+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.

thumbnail of the cover of the post

图片批量转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.

thumbnail of the cover of the post

和平精英异地/异设备人脸

换新设备后,和平精英游戏出现人脸验证问题。解决方法包括下载爱加速应用,确保两台设备连接相同地区的服务器,将人脸验证链接通过QQ发送至另一设备,并在验证前断网以避免直接跳出人脸验证。另一设备完成验证后,原设备点击完成验证即可解决。

thumbnail of the cover of the post

阿里云maven-MySQL依赖避坑

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

thumbnail of the cover of the post

NVM-node版本管理器

在帮助同学解决前端依赖拉取失败问题时,发现原因是证书过期。尝试更换镜像源和忽略SSL验证错误均未成功,最终决定卸载Node 18.0.0并安装NVM(Node Version Manager)。安装NVM后,成功下载并管理不同版本的Node,配置了淘宝镜像源以加速依赖下载。NVM的使用包括安装、查看、切换和卸载Node版本,解决了依赖拉取问题。

thumbnail of the cover of the post