Vscode + python 优雅调试

难看的调试输出在这里插入图片描述

#launch.json
{
   "version": "0.2.0",
   "configurations": [
       {
           "name": "Python: 当前文件",
           "type": "python",
           "request": "launch",
           "program": "${file}",
           "stopOnEntry": false,
           "console": "none" //加上这一行
       }
   ],
}

在这里插入图片描述
引用

设置镜像

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

https://mirror.tuna.tsinghua.edu.cn/help/pypi/

可执行EXE

pip install pyinstaller
build_exe .\main.py

https://pypi.org/project/py2exe/

python3.8 + pyinstaller3.5报错

解决方案
https://github.com/pyinstaller/pyinstaller/issues/4265#issuecomment-546221741

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章