错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Syntax, Comments, Code Style & Documentation: How Do I Make Sure That I (And Others) Still Understand My Program Later?

  • Joachim L. Zuckarelli

摘要

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.