# file-rename **Repository Path**: scsbcthh/file-rename ## Basic Information - **Project Name**: file-rename - **Description**: 文件批量重命名小工具,GUI采用PyQt6 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-13 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 文件批量重命名工具 - **GUI框架**: PyQt6 - **打包工具**: PyInstaller ## 快速开始 ### 1. 设置虚拟环境 ```bash # 创建虚拟环境 python -m venv .venv # 激活虚拟环境(Windows) .venv\Scripts\activate ``` ### 2. 安装依赖 ```bash # 安装核心依赖 pip install PyQt6 # 安装打包工具(可选) pip install pyinstaller ``` ### 3. 运行程序 ```bash # 直接运行Python脚本 python main.py ``` ## 打包为可执行文件 ### 方法1:使用提供的打包脚本 ```bash # 双击运行或命令行执行 打包.bat ``` ### 方法2:手动打包命令 ```bash # 基本打包 pyinstaller --onefile --windowed --name "文件批量重命名工具" --clean --noconfirm main.py ``` ### 打包参数说明 | 参数 | 说明 | |------|------| | `--onefile` | 打包为单个exe文件 | | `--windowed` | 不显示控制台窗口 | | `--name` | 设置输出文件名 | | `--clean` | 清理临时文件 | | `--noconfirm` | 不询问确认 | --- ## 参考教程 - [十分生动有趣的PyQt6中文教程!](https://drtxdt.github.io/Qt6-book-translation/)