将Python制作成exe程序
安装pyinstaller
pip install PyInstaller(Windows的dos环境或者Linux的shell环境)
打包
import time
fahremheit=float(input("输入华氏温度:"))
celsius=(fahremheit-32.0)/1.8
print('华氏温度%.1f 转换为摄氏温度是%1.f' %(fahremheit,celsius))
time.sleep(10)
打包命令:
指定图标打包
阿里巴巴矢量图标库-png格式转为ico(打包格式)
1.阿里图标库:https://www.iconfont.cn/,下载图标
2.在线转换图标:https://www.easyicon.net/covert/
exe程序在目录 disk下
打开exe程序