-
安装扩展(Extensions,
Ctrl+Shift+X)- python 扩展
- chinese(简体中文)
-
设置默认解释器
- 位置(文件 > 首选项 > 设置)
- 查询(python.pythonPath)
- 设置默认解释器的路径
/usr/local/bin/python3.10
-
创建 hello.py 文件
print("Hello World!") -
运行
- Run Current File in Interactive Windows.
- Run Python File in Terminal(
Shift+Enter)
Visual Studio Code 中 Python3 的配置
最新推荐文章于 2026-02-14 00:58:05 发布
本文介绍如何在 VSCode 中配置 Python 开发环境,包括安装必要的扩展、设置默认解释器路径以及运行 Python 文件的方法。
31万+

被折叠的 条评论
为什么被折叠?



