How to run Python in Visual Studio Code
Getting Started with Python in VS Code
vs code 安装python扩展包

下载python包
# Don't use with Anaconda distributions because they include matplotlib already.
# macOS
sudo python3 -m pip install matplotlib
# Windows (may require elevation)
python -m pip install matplotlib
# Linux (Debian)
sudo apt-get install python3-tk
python3 -m pip install matplotlib

查看python信息

运行python代码 ,以及查看运行结果

或者 右键:

命令行终端类型的选择


本文详细介绍了如何在Visual Studio Code中配置Python开发环境,包括安装Python扩展包、下载matplotlib等常用库的方法,以及如何运行Python代码并查看运行结果。适用于初学者快速上手VSCode进行Python编程。
4269

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



