The Python Tutorial:Python教程筆記

【注】翻譯官方文檔,只是想在學(xué)習(xí)Python過(guò)程留下筆記,如涉及侵權(quán),請(qǐng)聯(lián)系刪除。
The Python Tutorial
linyk3簡(jiǎn)書(shū):The Python Tutorial:Python教程筆記

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 是一門(mén)易學(xué)、功能強(qiáng)大的編程語(yǔ)言。它擁有高級(jí)數(shù)據(jù)結(jié)構(gòu),以及簡(jiǎn)單卻有效的方法來(lái)實(shí)現(xiàn)面向?qū)ο缶幊獭ython 優(yōu)雅的語(yǔ)法和動(dòng)態(tài)類型以及它天然的解釋能力,使其成為大部分平臺(tái)的很多領(lǐng)域里一門(mén)理想的腳本和快速應(yīng)用開(kāi)發(fā)語(yǔ)言。

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, https://www.python.org/, and may 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官網(wǎng) https://www.python.org/和所有的鏡像網(wǎng)站上以源碼或編譯版本的形式免費(fèi)獲取和自由發(fā)布。官網(wǎng)上也提供很多第三方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調(diào)用的語(yǔ)言)來(lái)擴(kuò)展新的函數(shù)和數(shù)據(jù)類型。所以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è)教程向讀者通俗的介紹Python語(yǔ)言和系統(tǒng)的基本的概念和特征。有一個(gè)Python 解釋器對(duì)于親自動(dòng)手做實(shí)驗(yàn)是很方便的,但是所有的實(shí)驗(yàn)都是獨(dú)立的,所以這個(gè)教程也可以離線閱讀。

For a description of standard objects and modules, see The Python Standard Library.The Python Language Reference gives a more formal definition of the language. To write extensions in C or C++, read Extending and Embedding the Python Interpreterand Python/C API Reference Manual. There are also several books covering Python in depth.
對(duì)于對(duì)象和模塊的標(biāo)準(zhǔn)描述,請(qǐng)查看Python 標(biāo)準(zhǔn)庫(kù):The Python Standard Library.Python 語(yǔ)言參考:The Python Language Reference 給出了Python語(yǔ)言更加正式的定義。 用C或者C++來(lái)寫(xiě)相關(guān)擴(kuò)展的話,請(qǐng)查看: Extending and Embedding the Python Interpreterand Python/C API Reference Manual.

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 Standard Library.
這里也有幾本書(shū)來(lái)深度學(xué)習(xí)Python.
這個(gè)教程不會(huì)嘗試廣泛的覆蓋每一個(gè)特征,或者甚至每一個(gè)常用的特征。相反的,它介紹了很多Python最值得注意的特征,并且會(huì)提供你一個(gè)關(guān)于Python語(yǔ)言的韻味和風(fēng)格好的建議。讀完這個(gè)教程后,你將能夠讀和寫(xiě)Python模塊和程序,你也能夠準(zhǔn)備好去學(xué)習(xí)Pyhton 標(biāo)準(zhǔn)庫(kù):The Python Standard Library里描述的Python庫(kù)模塊。

The Glossary is also worth going through.
這個(gè)詞匯表Glossary也很值得去過(guò)一遍。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容