背景
对于后端的语言选择:
python,java,JavaScript备选。
选择Python
原因:可能是非IT专业的人中,会Python的人比较多。
目的
之前使用的IDE是VSCODE,在WSL的环境下使用。现在需要在在WSL的VSCODE下使用python语言和Django/flask框架。
环境准备:参照VSCODE官网信息。
https://code.visualstudio.com/docs/python/python-tutorial
安装python3和 pip

创建程序运行
按照指导创建HelloWorld文件夹和.py文件。可以在WSL运行该文件。

vscode打开对应的hello.py, 安装推荐的extension。
执行程序,在terminal里可以看到运行的结果。
创建虚拟环境
回到vscode的python 教程,创建虚拟环境。好处是在项目中固定版本,减少不必要的错误出现的可能性。

后台会安装很多文件。如下图

安装package
pip install
