下载 python
https://www.python.org/downloads/windows/
注:这里要安装3.5的才有语法提示,3.5到3.8的vscode没得提示
下载编辑器 vscode
https://jingyan.baidu.com/article/48a420570f8482a924250499.html
1.给python安装 pip -》python script文件夹下执行 easy_install pip
2.打开vscode编辑器


3.将首选项下的设置setting.json打开,并复制到项目中去,自己运行下调式也会生成一个

4.将python环境写入到setting.json项目配置文件中

5.安装语法高亮,让项目能够被vscode成功运行起来
安装yapf之后在VScode中按Alt+Shift+F即可自动格式化代码
在vscode终端输入 "pip install yapf"
在vscode终端输入 "pip install flake8"
在settings.json文件中输入"python.linting.flake8Enabled": true
学习网络爬虫:
http://blog.csdn.net/c406495762/article/details/58716886
https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000
http://www.360doc.com/content/15/0520/23/25626441_472072940.shtml
学习爬虫:
python3直接使用 pip install beautifulsoup会报错,应输入 pip install bs4
使用时:from bs4 import beautifulsoup
网友评论