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

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.

主站蜘蛛池模板: 通辽市| 雅江县| 大埔区| 吉隆县| 汉沽区| 南涧| 织金县| 汕头市| 铁力市| 长岭县| 太原市| 兴文县| 大田县| 平遥县| 鄯善县| 海丰县| 松江区| 错那县| 奉节县| 本溪| 闽清县| 花莲市| 云霄县| 陵水| 依安县| 青州市| 乐安县| 鲁甸县| 瓦房店市| 桂阳县| 德保县| 定结县| 通江县| 迁安市| 绥化市| 香港 | 明水县| 靖江市| 佛学| 西盟| 拉萨市|