# printer **Repository Path**: python-linming/printer ## Basic Information - **Project Name**: printer - **Description**: web浏览器调用打印机无法取消预览页面,只能python写服务,间接调用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-09-02 - **Last Updated**: 2023-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README win10下python代码打包成exe文件并作为服务后在后台运行,开机自启 1. pip install pyinstaller 2. pyinstaller -F app.py 3. nssm下载地址:https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip 4. 在nssm的文件夹打开cmd,执行:nssm install xxx(这里随便给自己的服务起个名字) 5. 加载打包app.exe的路径 6. 接着搜索“服务”,来到服务界面,找到自己命名的服务,右键启动即可! http://127.0.0.1:5000/printer?title=%E5%85%B0%E5%B7%9E%E5%B8%82%E6%94%BF%E5%8A%A1%E6%9C%8D%E5%8A%A1%E4%B8%AD%E5%BF%83&general=%E5%9B%BD%E5%AE%B6%E5%8C%BB%E7%96%97%E4%BF%9D%E9%9A%9C%E6%80%BB%E5%B1%80&branch=%E5%85%B0%E5%B7%9E%E5%B8%82%E5%88%86%E5%B1%80&item=%E7%BB%BC%E5%90%88%E7%94%B3%E6%8A%A5&number=S1003&cardid=622***********3313&waitid=108,109&count=16&datetime=2022-09-09%2009:45:43