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

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.

主站蜘蛛池模板: 安泽县| 齐河县| 赤峰市| 三河市| 修文县| 石城县| 曲麻莱县| 将乐县| 苍山县| 成都市| 张掖市| 邮箱| 若尔盖县| 长宁县| 师宗县| 永胜县| 中宁县| 永胜县| 龙门县| 松潘县| 那曲县| 噶尔县| 莱西市| 沾益县| 濮阳县| 额尔古纳市| 池州市| 依安县| 石林| 沐川县| 古田县| 靖州| 罗定市| 时尚| 阳春市| 道真| 江门市| 贺兰县| 宁强县| 乌拉特前旗| 兴山县|