ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

python教程(一)

2026/8/9 20:14:05 拓冰建站 浏览量
python教程(一)

vscode安装

1、python必备插件

python、 pylance、

black formatter需要配置:"[python]": { "editor.defaultFormatter": "ms-python.black-formatter", "editor.formatOnSave": true }

2、为了避免中文显示问题,需要配置 Python 的编码设置:

  • 打开设置
  • 搜索 "Code-runner: Executor Map"
  • 点击 "Edit in settings.json"
  • 添加{ "code-runner.executorMap": { "python": "set PYTHONIOENCODING=utf8 && python -u $fullFileName" } }

  

 

 

后续跟进更新