首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Python—Preface

【导言】《PythonTutorial, Release 3.6.4》是适合Python3.6.4语言版本的教程,本教程英文原版来自Python官网,内容权威,版本最新,注重基础,示例代码准确无误,学习高效快捷。

目前,国内某些Python教材,粗制滥造,错漏百出,示例代码无法执行,耽误学习。有鉴于此,华哥才萌生了将该教程译成中文、发布分享的想法,并付诸行动。由于个人水平有限,译文肯定有不少错漏,恳请读者诸君,不吝赐教!

本教程英文原版版权属于Python官网(https://www.python.org/)所有,从英文原版译出的中文版权归译者华哥所有。

本教程发布形式:前部分为英文原文,后部分为对应的中文译文。

本教程英文原版包括16章和附录共150多页,将分期连续发布,敬请期待!

Preface

Python is an easy to learn, powerful programming language. It hasefficient high-level data structures and a simple but effective approach toobject-oriented programming. Python’s elegant syntax and dynamic typing,together with its interpreted nature, make it an ideal language for scriptingand rapid application development in many areas on most platforms.

The Python interpreter andthe extensive standard library are freely available in source or binary formfor all major platforms from the Python Web site, https://www.python.org/, andmay be freely distributed. The same site also contains distributions of andpointers to many free third party Python modules, programs and tools, andadditional documentation.

The Python interpreter iseasily extended with new functions and data types implemented in C or C++(orother languages callable from C). Python is also suitable as an extensionlanguage for customizable applications.

This tutorial introduces the reader informally to the basicconcepts and features of the Python language and system. It helps to have aPython interpreter handy for hands-on experience,but all examples areself-contained, so the tutorial can be read off-line as well.

For a description of standardobjects and modules, see library-index. Reference-index gives a more formaldefinition of the language. To write extensions in C or C++, readextending-index and c-api-index. There are also several books covering Pythonin depth.

This tutorial does not attempt to be comprehensive and cover everysingle feature, or even every commonly used feature. Instead, it introducesmany of Python’s most noteworthy features, and will give you a good idea of thelanguage’s flavor and style. After reading it, you will be able to read andwrite Python modules and programs, and you will be ready to learn more aboutthe various Python library modules described in library-index.

The Glossary is also worth going through.

前言

Python是一种易于学习的、强大的编程语言。它拥有高效的高级数据结构和一套简单而有效率的面向对象编程方法。Python优雅的语法和动态类型,及其解释特性,使它成为大多数平台上众多领域的脚本编写和快速应用程序开发的理想语言。

对于所有主流平台,Python的解释器和扩展标准库都可以从Python网站,https://www.python.org/,以源代码或二进制的形式免费获取,并且可以自由分发。同一站点还包含很多免费的第三方Python模块、程序、工具以及附加文档的分发和指南。

Python解释器很容易用在C或C++语言中(或者其他源自C语言的可调用语言)实现的新函数和数据类型进行扩展。Python也适合作为一种可定制的应用程序的扩展语言。

本教程通俗地向读者介绍了Python语言和系统的基本概念和特性。它有助于方便地使用Python解释器进行手工操作,但所有示例都是独立的,因此本教程也可离线阅读。

关于标准对象和模块的详细说明,请参见库索引。引用索引给出了一种更正式的语言定义。若用C或C++语言编写扩展,请阅读扩展索引和C-API索引。还有好几本深入涵盖Python的书。

本教程没有试图去全面涵盖每一个单一的特性,甚或每一个常用的特性。相反地,它引入了Python的许多最值得注意的特性,并将使你对于这种语言的韵味和风格有一个很好的了解。阅读完本教程之后,你将能够阅读和编写Python模块和程序。你将乐意去更多地了解库索引中描述的各种各样的Python库模块。

术语表也是值得通读的。

  • 发表于:
  • 原文链接http://kuaibao.qq.com/s/20180123G0CG9B00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券