-
安装扩展(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 的配置
最新推荐文章于 2024-04-20 22:35:08 发布