官术网_书友最值得收藏!

PEP 8 and writing readable code

In this section, we'll take a quick look at how to format our code so that it'll be easy to read when we come back to it at some later date or when somebody else has to work with it. We will specifically take a look at indentation rules, the Python code style guide, and finally, the standard naming convention.

Python Enhancement Proposals or PEPs are the documents that establish standards in the Python community. Most PEPs describe new features for Python or Python's standard library, but a few of them are more nebulous. PEP 8 is one of those; it tells us what the Python community considers to be well-written, readable code.

主站蜘蛛池模板: 海盐县| 云安县| 昌图县| 康保县| 曲周县| 龙胜| 信丰县| 崇礼县| 额济纳旗| 安龙县| 临邑县| 深泽县| 兴业县| 南宫市| 赤城县| 察哈| 常州市| 加查县| 浠水县| 滕州市| 孟津县| 彭州市| 马关县| 白河县| 贺兰县| 温泉县| 灵武市| 合水县| 昆明市| 思南县| 高台县| 革吉县| 天门市| 宁乡县| 吉林省| 泰州市| 武宣县| 嘉鱼县| 余江县| 闽侯县| 景宁|