- 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.
推薦閱讀
- Node.js Design Patterns
- Java異步編程實(shí)戰(zhàn)
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Julia機(jī)器學(xué)習(xí)核心編程:人人可用的高性能科學(xué)計(jì)算
- Python編程與幾何圖形
- jQuery開發(fā)基礎(chǔ)教程
- Go語言精進(jìn)之路:從新手到高手的編程思想、方法和技巧(1)
- Bootstrap 4 Cookbook
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- Clean Code in C#
- 創(chuàng)意UI:Photoshop玩轉(zhuǎn)APP設(shè)計(jì)
- Mastering Elixir
- SAP Web Dynpro for ABAP開發(fā)技術(shù)詳解:基礎(chǔ)應(yīng)用
- 從零開始學(xué)Python大數(shù)據(jù)與量化交易
- React and React Native