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

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.

主站蜘蛛池模板: 黑山县| 揭阳市| 阳泉市| 道孚县| 泊头市| 山阴县| 营口市| 祥云县| 扶绥县| 黄浦区| 翼城县| 丹东市| 威信县| 桑植县| 海安县| 乐清市| 东莞市| 延边| 云梦县| 三明市| 自治县| 锦州市| 布尔津县| 崇州市| 临沧市| 桂平市| 逊克县| 曲水县| 疏勒县| 土默特右旗| 宣汉县| 隆德县| 齐河县| 油尖旺区| 河曲县| 东阳市| 中山市| 于都县| 南安市| 鸡东县| 麻江县|