- Daniel Arbuckle's Mastering Python
- Daniel Arbuckle
- 119字
- 2021-07-02 21:09:40
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.
推薦閱讀
- UNIX編程藝術
- Python量化投資指南:基礎、數據與實戰
- HTML5+CSS3基礎開發教程(第2版)
- 從0到1:HTML+CSS快速上手
- C++ 從入門到項目實踐(超值版)
- C程序設計實踐教程
- 零基礎入門學習Python(第2版)
- Learning Apache Karaf
- Hands-On GUI Programming with C++ and Qt5
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Training Systems Using Python Statistical Modeling
- Hands-On Robotics Programming with C++
- Hands-On Dependency Injection in Go
- 微信小程序開發圖解案例教程:附精講視頻(第3版)
- Instant JRebel