- The Python Apprentice
- Robert Smallshire Austin Bingham
- 73字
- 2021-07-02 22:17:01
Moment of zen

Figure 3.1: Moment of zen: Two between functions
You'll notice that our top level functions have two blank lines between them. This is conventional for modern Python code.
According to the PEP 8 style-guide it's customary to use two blank lines between module-level functions. We find this convention has served us well, making code easier to navigate. Similarly, we use single blank lines for logical breaks within functions.
推薦閱讀
- 深入理解Android(卷I)
- TypeScript入門與實戰
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- Network Automation Cookbook
- 程序員考試案例梳理、真題透解與強化訓練
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Mastering ArcGIS Enterprise Administration
- Troubleshooting Citrix XenApp?
- IoT Projects with Bluetooth Low Energy
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Python Programming for Arduino
- Functional Python Programming
- C/C++代碼調試的藝術(第2版)
- HTML5與CSS3權威指南
- Apache Solr for Indexing Data