The Python Tutorial

  • python,
  • 2013-09-30 07:39:04

该文章移动到 https://binkery.com/archives/2013.09.30-python-tutorial.html

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, http://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.

使用C,C++ 或者其他可以调用C的语言,很容易扩展Python解释器的新功能。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.

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.

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.

相关文章

- EOF -

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]
本文标题: The Python Tutorial
本文地址: https://binkery.com/archives/313.html