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

文件命名-计数版

This Python script renames files in a specified directory based on a prefix and file extensions. It uses a record file to keep track of the renaming count, ensuring unique names for each file. The script supports multiple file extensions and updates the count after renaming each file.

thumbnail of the cover of the post

批量命名-递增版

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.

thumbnail of the cover of the post

一键打包

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.

thumbnail of the cover of the post

PULCHRE BENE RECTE!

前言 翻译版: 10年间疏远的兄妹。 这次的新作是原创同人,所以非常大胆放肆。 与平时的风格有所不同,像是我们常见的原创同人志一样的情绪。 想描绘复杂家庭环境下扭曲的兄妹之爱。 可能会有一些言辞过于疯狂的地方,让人觉得“这是什么?”。 正文

thumbnail of the cover of the post

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

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

thumbnail of the cover of the post