1. 安装 pyinstaller:
Win+R 运行 CMD 进入命令 :
pip install pyinstaller
2. 将上代码保存为 scheduler.py
然后运行命令 :
pyinstaller -Fw scheduler.py
3. 在 dist 文件夹中找到生成的 scheduler.exe,即可双击运行。