开发者

Techniques for writing good python code [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you 开发者_C百科feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

What are the well-known and generally recognized (not subjective) techniques for writing good python code. Structuring it (in opposite to spaghetti code). Good practices for decomposition and decision to make new function or class and similar practical things. You can post a link where are described and demonstrating them in opposite to poor practices.

thank you


See: PEP 8


Code like a pythonista http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html


General sense applies, and follow the style guide:

http://www.python.org/dev/peps/pep-0008/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜