Python standard library 1 Introduction Introduction try to translate

Source: Internet
Author: User
Tags stack trace

The "Python Library" contains several different kinds of components.

The Python standard library contains several different components.

IT contains data types that would normally is considered part of the "core" of a language, such as numbers and lists. For these types, the Python language core defines the form of literals and places some constraints on their semantics, but Does not fully define the semantics. (On the other hand, the language core does define syntactic properties like the spelling and priorities of operators.)

The library also contains built-in functions and exceptions-objects that can is used by all Python code without the Need of an import statement. Some of these is defined by the core language, but many is not essential for the core semantics and is only described H ere.

The standard library also includes built-in functions and expressions. That can be used directly, without the need to import an additional imported object. Some of them are defined by the core language, but most of them are not necessary for the grammar core, but are introduced here.

The Bulk of the library, however, consists of a collection of modules. There is many ways to dissect this collection. Some modules is written in C and built in to the Python interpreter; Others is written in Python and imported in source form. Some modules provide interfaces that is highly specific to Python, like printing a stack trace; Some provide interfaces that is specific to particular operating systems, such as access to specific hardware; Others provide interfaces that is specific to a particular application domain, like the world Wide Web. Some modules is available in all versions and ports of Python; Others is only available when the underlying system supports or requires them; Yet others is available only when a particular configuration option is chosen at the time if Python was compiled and I nstalled.

A large number of library collections make up a number of modules. There are many ways to make these combinations. Some modules are written in C and built into the Python interpreter. Others are written in Python and are imported in the form of Python source code. Many modules provide interfaces, and for Python are some advanced features like printing stack information. There are also some provider interfaces that are specific to the operating system, like access to the specified hardware. There are also some interfaces for specific application areas, such as the Internet. Many modules are available in a variety of Python versions. Others can be used if they are supported by the system. There are also some needs to be used when compiling and installing Python with the corresponding options.

This manual was organized "from the Inside Out:" It first describes the built-in data types and then the built-in functions an D exceptions, and finally the modules, grouped in chapters of related modules. The ordering of the chapters as well as the ordering of the modules within each chapter are roughly from most relevant to L East important.

This manual was originally called "from Inside to outside": it first introduces the built-in data types, then the built-in functions and expressions, and finally the module chapters according to the relevant organization. The order of chapters is probably from the usual to the infrequently used order.

This means so if you start reading this manual from the start, and skip to the next chapter when you get bored, you'll Get a reasonable overview of the available modules and application areas that is supported by the Python library. Of course, you don ' t haveTo read it like a novel-you can also browse the table of contents (in front of the manual), or look for a specific funct ion, module or term of the index (in the back). And finally, if you enjoy learning about the random subjects, you choose a random page number (see ModuleRandom) and read a section or both. Regardless of the order in which your read the sections of this manual, it helps to start with chapterbuilt-in Functions, as the remainder of the manual assumes familiarity with this material.

Let the show begin!

This means that you can read the manual from scratch and jump to the next chapter when you're bored. This provides a general understanding of which modules are available for the Python standard library and which applications can be supported. Of course, instead of reading it like a novel, you can look at the table of contents, look for specific functions, modules, or search for them. Finally, if you enjoy the pleasure of reading a random theme, you can first select a random page number and read one or two parts. No matter how you want to read it, it's better to start with the built-in function chapter, because the rest of the chapters are based on the assumption that you already know the built-in functions chapter.

Let's get started!

Python standard library 1 Introduction Introduction try to translate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.