1.每个.py文件中都可以单独指定Python版本,方法是在前面加上:
#!/usr/local/bin/python3.7
2.mac一般默认python2,在python3中安装requests库,方法为:pip3 install requests
安装python3后会默认安装好pip3,所以直接运行上行就可以在python3环境中安装requests
3.在windows下安装vscode后,再下载 git(https://git-scm.com/download/win) ,安装后在git bash 里输入git 账号:
$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"
到github.com中找到项目路径,git clone https://github.com/changxiang/python
4.python下载:https://www.python.org/downloads/
5.plint是一个提示插件,chinese,vscode中文插件。