學習程式語言,很多彎路可走,有一條路可能不是捷徑但一定不是彎路,那就是官方文檔的閱讀與消化!
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是一門功能強大並且易於學習的程序語言。它擁有高效率的數據結構,是一門簡單但高效的面向對象程序語言,Python優雅簡潔的語法和動態的特性,結合它的易讀性,使它成為了在大多數平臺上諸多領域的腳本編寫和快速程序開發的理想程式語言。
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的解釋器和擴展豐富的標準庫可以以原始碼或二進位格式的從Python網站免費獲得,站點上也包含了很多免費的第三方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 的解釋器是非常容易用C或C++辯稱語言(或者其他調用C語言的程式語言)擴展出新的功能或數據類型的。Python也非常適合作為定製程序的擴展語言。
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.
自譯:本教程會為讀者以非正式的方式介紹基礎的概念、python語言和系統的特徵。自帶了Python解釋器以親手操作,但所有的例子都是自己包含的,所以本教程也可以離線使用。
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 Interpreter and Python/C API Reference Manual. There are also several books covering Python in depth.
自譯:對於標準對象和模塊的描述,請參見Python標準庫。Python語言指引給了很多程式語言官方的定義。如果為了使用C或C++進行擴展應用的構建,請閱讀Python解釋器和Python/C的API的擴展和嵌入的參考手冊。有很多深入講解Python的書籍。
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.
自譯:本教程並未試圖講解多麼複雜、涵蓋每一個偏的功能或者包含每一個常用的功能,相反的是教程介紹了很多Python值得注意的功能,並且會幫助你更好了解Python程式語言的模塊和程序,如果想學習更多python的庫模塊,請去Python標準庫進行了解和學習。