栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pycharm PEP8规范(python)

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pycharm PEP8规范(python)

PEP 8: E231 missing whitespace after ‘,’
这个意思是逗号后面要有一个空格

PEP 8: E203 whitespace before ‘,’
这个意思是逗号前面不能有空格

PEP 8: W292 no newline at end of file
这里是要求你在末尾新起一行

PEP 8: E305 expected 2 blank lines after class or function definition, found 0
这个是写完函数和类之后要空出两个空行(方便区分)

PEP 8: W391 blank line at end of file
就是这个结尾是空行,你需要把光标指向第一列

PEP 8: E251 unexpected spaces around keyword / parameter equals
就是多了空格

PEP 8: E261 at least two spaces before inline comment
行内注释前需要两个空格

PEP 8: E262 inline comment should start with ‘# ’
行内注释应该以’#'加空格开始

PEP 8: E302 expected 2 blank lines, found 1
就是希望有两个空行来区分

PEP 8: E271 multiple spaces after keyword
关键字后空格多了

PEP 8:Remove redundant parentheses
删除多余的空格
 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/853093.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号