Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. Python
是一種容易學(xué)習(xí)的強(qiáng)大語(yǔ)言。它包括了高效的高級(jí)數(shù)據(jù)結(jié)構(gòu),提供了一個(gè)簡(jiǎn)單但很有效的方式進(jìn)行面向?qū)ο缶幊。Python 優(yōu)雅的語(yǔ)法,動(dòng)態(tài)類型,以及它天然的解釋能力,使其成為了大多數(shù)平臺(tái)上應(yīng)用于各領(lǐng)域理想的腳本語(yǔ)言以及開發(fā)環(huán)境。
The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, http://www.python.org/, and can be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.
Python 解釋器及其擴(kuò)展標(biāo)準(zhǔn)庫(kù)的源碼和編譯版本可以從 Python 的 Web 站點(diǎn), http://www.python.org/, 及其所有鏡像站上免費(fèi)獲得,并且可以自由發(fā)布。該站點(diǎn)上也提供了 Python 的一些第三方模塊,程序,工具,以及附加的文檔。
The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications.
Python 的解釋器很容易通過(guò) C 或 C++ (或者其它可以由C來(lái)調(diào)用的語(yǔ)言)來(lái)擴(kuò)展新的函數(shù)和數(shù)據(jù)結(jié)構(gòu)。因此 Python 也很適于作為定制應(yīng)用的一種擴(kuò)展語(yǔ)言。
This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well.
這個(gè)手冊(cè)介紹了一些 Python 語(yǔ)言及其系統(tǒng)的基本知識(shí)與概念。這有助于讀者對(duì) Python 有一個(gè)基本的認(rèn)識(shí),當(dāng)然所有的例子都已包括在文中,所以這本手冊(cè)很適合離線閱讀。
For a description of standard objects and modules, see the Python Library Reference document. The Python Reference Manual gives a more formal definition of the language. To write extensions in C or C++, read Extending and Embedding the Python Interpreter and Python/C API Reference. There are also several books covering Python in depth.
需要有關(guān)標(biāo)準(zhǔn)對(duì)象和模塊的詳細(xì)介紹的話,請(qǐng)查詢 Python 庫(kù)參考手冊(cè) 文檔。Python 參考手冊(cè) 提供了更多的關(guān)于語(yǔ)言方面的正式說(shuō)明。需要編寫C或C++擴(kuò)展,請(qǐng)閱讀 Python 解釋器的擴(kuò)展和集成 以及 Python/C API 參考手冊(cè)。這幾本書涵蓋了各個(gè)深度上的Python知識(shí)。
This tutorial does not attempt to be comprehensive and cover every single feature, or even every commonly used feature. Instead, it introduces many of Python's most noteworthy features, and will give you a good idea of the language's flavor and style. After reading it, you will be able to read and write Python modules and programs, and you will be ready to learn more about the various Python library modules described in the Python Library Reference.
本手冊(cè)不會(huì)涵蓋 Python 的所有功能,也不會(huì)去解釋所用到的所有相關(guān)的知識(shí)。相反,它介紹了許多 Python 中最引人注目的功能,這會(huì)對(duì)讀者掌握這門語(yǔ)言的風(fēng)格大有幫助。讀過(guò)它后,你應(yīng)該可以閱讀和編寫 Python 模塊和程序,接下來(lái)可以從 Python 庫(kù)參考手冊(cè) 中進(jìn)一步學(xué)習(xí)Python復(fù)雜多變的庫(kù)和模塊。
譯者:劉鑫(march.liu AT gmail DOT com) 由:limodou轉(zhuǎn)(limodou AT gmail DOT com) CHM 文件制作:Colin.Wang 2007年9月