Python standard library: 1. Introduction, python Standard

Source: Internet
Author: User
Tags types of functions

Python standard library: 1. Introduction, python Standard

The standard library contains several different types of libraries.

 

The first is the data type libraries of those core languages, such as libraries related to numbers and lists. In the core language manual, it only describes the compiling method of numbers and lists, and its arrangement, without defining its semantics. In other words, the core language manual only defines the syntax and priority, and does not define the operation on these types of functions.

 

Secondly, the standard library contains some built-in functions and exception handling objects. When using these objects, you do not need to explicitly use the import Statement for import. Some of them are required by the core language, but many of them are not required by the core language, which is also described here.

 

Finally, a large number of libraries in the standard library are such functional modules that can be classified in multiple ways. For example, for classification by built-in or not, some are written in C language and embedded in the parser, while some provide the source code for calling through the import statement; some modules provide interfaces to view the Python running process, such as printing the running stack; some provide interfaces with the operating system, such as accessing the system hardware; others are also used in specific application fields, such as the Internet; some modules can be used in all Python versions and migrations, but some are only supported On some systems; some other functions can be used only during Python compilation or installation.

 

The standard library is organized in the internal to external mode, which means to first introduce the built-in data types, built-in functions and exceptions, and finally introduce the modules that implement some functions outside. The order in each chapter is sorted from the most important to the unimportant.

 

When you get bored with some content, you can skip some chapters. You only need to understand its meaning and application fields. Therefore, you do not have to read a novel from the beginning to the end, because each chapter is relatively independent and there is not much Association. For example, you can browse the standard library directory, choose your favorite content to read, or look at your favorite functions, or read only one or two small fragments. You can even randomly extract the content to see it without the need to sort it in the orchestration order, for example, you choose the random library. Whatever you want to read the standard library manual, you must first read the built-in functions, this is because other chapters are based on it. If you do not learn this basic knowledge, your understanding of the future will lead to great difficulties and confusions.

Therefore, let's start from here now! Come on!

 

# Developer: Cai junsheng (QQ: 9073204) Shenzhen


I plan to create a python standard library reference manual. Which of the following is the best choice?

I can buy a Python standard library. I recommend this one.

Python beginners start to read the python learning manual. Is there any need to create another python standard library ??

I am also self-taught. This winter vacation started, but I am reading head first python. I think it is better to read one carefully.

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.