In the Preface, I mentioned that Python emphasizes concepts such as quality, productivity, portability, and integration. Since these four terms summarize most of the reasons for using Python, I'd like to define them in a bit more detail.
我在序言里提到,python强调诸如 质量,生产力,移植和综合等概念。既然这四个术语概括了实用python的原因,我很乐意把它们定义的更详细一些。
Software quality
软件质量
- Python makes it easy to write software that can be understood, reused, and modified. It was deliberately designed to raise development quality expectations in the scripting world. Python's clear syntax and coherent design, for example, almost force programmers to write readable codea critical feature for software that may be changed or reused by others in the future. 使用Python编写可理解的可重用和 易于改进的软件比较容易。在脚本的世界里,从Python的出生那天就被期着承担提高开发质量的责任。Python清晰的语法和连贯的设计,比如强制程序员书写可读的代码,这些代码将来可能被其他人更改及重用。 Of equal importance, because the Python language tries to do better, so too do Python developers and the Python community at large. In the Python world, one finds a refreshing focus on quality concepts such as simplicity, explicitness, and readabilityideas often given little more than a passing glance in some camps. (For more on this Python-inspired mindset, see the sidebar "The Python 'Secret Handshake'," near the end of this chapter.) 同样重要的是,因为Python试着做的更好,正如在Python社区和Python的程序员尝试去做的那样。在Python的世界里,找到一个令人神清气爽的焦点在质量概念,如简单,清晰,和可读性 经常让一些comps人命短暂的一瞥更多的