pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
平时用pycharm,现在试试vscode
函数注释用koroFileHeader插件,参考:https://segmentfault.com/a/1190000016709849?utm_source=tag-newest
参考https://www.jianshu.com/p/d1a974600807
1.安装python插件,插件里搜索python,第一个就是。
2.安装python intellisense
3.ctrl+shift+p,命令框中输入python——>提示“python: select interpreter”——>选择要用的python解释器
4.安装code runner
5.配置调试器ctrl+shift+p——>debug sel——>debug: select and start debuging——>python: current file(integrated terminal)
6.terminal——>run task——>生成tasks.json
7.配置flake8 (专门提示python代码错误)
安装flake8之后写代码的时候编辑器就会提示哪里出错,代码格式不