# 使用vscode建立python的hello,用conda虚拟环境python3.12
# 安装插件
# 打开vscode,输入ctrl+shift+X 可以打开扩展界面
# vscode的python官方插件,提供了python代码调试、自动补全等功能
# Python language support with extension access points for IntelliSense
# 测试:打开一个文件夹,创建一个hello.py文件
# 建立文件夹
mkdir -p /home/hutu/code/python/hellopy
# 创建文件 hellopy.py
# 使用默认的安装官方解释器
# 输入如下
print("hello world")
# 运行代码
# 更改虚拟环境,使用conda/
# crtl+shift+P,选择conda的python3.12的虚拟环境,运行
# 命令行下运行
cd /home/hutu/code/python/hellopy
conda activate py3.12
# (py3.12) (base) hutu@hutu-virtual-machine:~/code/python/hellopy$
python hellopy.py
# 出现hello world