1.Python built-in modules and third-party 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
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