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

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.

主站蜘蛛池模板: 河北省| 长丰县| 彝良县| 资中县| 海淀区| 天等县| 新巴尔虎左旗| 龙井市| 南华县| 米易县| 宁陕县| 潞城市| 民县| 康保县| 西峡县| 龙州县| 化隆| 保德县| 巴彦县| 珲春市| 会同县| 柞水县| 文安县| 汉源县| 山阳县| 台北市| 阜城县| 买车| 富锦市| 连城县| 海盐县| 徐汇区| 尉犁县| 三江| 山阴县| 甘谷县| 沅江市| 滁州市| 上思县| 漳平市| 城固县|