# windows-calculator **Repository Path**: wangbincode/windows-calculator ## Basic Information - **Project Name**: windows-calculator - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-15 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Windows 计算器 一个简单的 Windows 桌面计算器应用,使用 Python 和 tkinter 构建。 ## 功能 - 基本四则运算(加减乘除) - 百分比计算 - 正负号切换 - 小数运算 ## 运行要求 - Python 3.x - tkinter(通常随 Python 一起安装) ## 使用方法 1. 确保已安装 Python 3 2. 运行程序: ``` python calculator.py ``` ## 打包为 exe(可选) ### Windows 一键打包 双击运行 `build.bat`,自动完成打包。 生成的 exe 文件在 `dist\calculator.exe` ### 手动打包 ```bash pip install pyinstaller pyinstaller --onefile --windowed --name calculator calculator.py ``` 生成的 exe 文件在 `dist` 目录中。