- 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.
推薦閱讀
- Hyper-V 2016 Best Practices
- Learning ROS for Robotics Programming(Second Edition)
- Oracle Exadata性能優化
- JavaScript修煉之道
- 編程卓越之道(卷3):軟件工程化
- Python自動化運維快速入門(第2版)
- INSTANT CakePHP Starter
- QGIS:Becoming a GIS Power User
- Mastering ROS for Robotics Programming
- Android傳感器開發與智能設備案例實戰
- Django實戰:Python Web典型模塊與項目開發
- 并行編程方法與優化實踐
- Python趣味編程與精彩實例
- 程序員的成長課
- Java EE 7 Development with WildFly