- 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.
推薦閱讀
- 少兒人工智能趣味入門:Scratch 3.0動畫與游戲編程
- Instant Node Package Manager
- R語言數據可視化之美:專業圖表繪制指南
- Oracle數據庫從入門到運維實戰
- Java編程技術與項目實戰(第2版)
- Swift 4 Protocol-Oriented Programming(Third Edition)
- 深入淺出Go語言編程
- Spring Boot實戰
- Building Slack Bots
- Software-Defined Networking with OpenFlow(Second Edition)
- Sitecore Cookbook for Developers
- Professional JavaScript
- Android熱門應用開發詳解
- Python人工智能項目實戰
- .NET應用架構設計:原則、模式與實踐