Syntax, Comments, Code Style & Documentation: How Do I Make Sure That I (And Others) Still Understand My Program Later?
摘要
This chapter covers formatting of Python code, which is especially important because unlike many other languages, formatting in Python hanges the meaning of your code. We also discuss how to name variables, functions, and other program elements in a Python-like manner, and how to comment Python code for yourself and document it for others.