代码拉取完成,页面将自动刷新
1.防止python的便宜文件.pyc提交到git上
shift + command + p之后输入setting
在工作目录中加入一下配置文件
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/*.pyc": true,
"**/.DS_Store": true
}
}
2.git本身排除python的编译文件
在.gitignore文件中增加**/*.pyc即可
3.在vscode中格式化python的代码
conda install --name wow3.9 autopep8 -y
pip install -U flake8
pip install -U autopep8
On Windows Shift + Alt + F
On Ubuntu Ctrl + Shift + I
安装tox
sudo pip install tox
执行检查命令
tox -e pep8
所有不符合pep8规则的都会展示出来,一个个文件改就行了
4.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。