ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

python教程(一)

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" } }

  

 

 

后续跟进更新

返回列表