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

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