Python built-in modules and third-party modules

Source: Internet
Author: User

1.Python built-in modules and third-party modules

    • Built-in modules:

Python, after installing Python, has its own library, called Python's built-in library.

Built-in modules, also known as Python's standard library.

Python 2.x online library function query, can go here:

The Python standard Library

    • Third party libraries:

Rather than a library of Python itself, it is the so-called third-party library;

2. module = = Library

Modules, module, are also often called libraries, lib,library.

3. Common built-in modules and third-party modules

In Python, some common built-in modules are:

Python built-in module name Feature Introduction Detailed explanation/Use example
Os and operating system-related Os.path -common pathname manipulations
Sys and system-related sys -system-specific parameters and functions
Urllib,urllib2 and network-related Urllib -open arbitrary resources by URL
urllib2 -extensible library for opening URLs
Re Regular expressions re -regular expression operations
Json Working with JSON strings JSON -json encoder and decoder

More use of the experience, can refer to my:

How to use the self-contained module in Python

Some of the third-party modules I've been tossing:

python third-party module name feature brief detailed explanation/Use example
beautifulsoup is used to parse HTML code to make it easy to extract the required content BEAUTIFULSOUP 
" Summary " Python's third-party library BeautifulSoup uses  
organize the HTML processing library functions in Python beautifulsoup usage considerations
XLWT "record" In Python, generate (write data to) Excel file
scrapy Framework for writing web crawlers "Record" Toss Scrapy tutorial
pil graphics library for the appearance of images "Resolved" After the open in Python through the image, go to show results cannot open BMP picture, unable to display the picture correctly

More use of the experience, you can refer to my:

The use of third-party modules in Python

Related Article

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.