The Ython has a strong standard library. The core of the Python language contains only the common types and functions of numbers, strings, lists, dictionaries, files, and the Python standard library provides additional functions such as system management, network communication, text processing, database interfaces, graphics systems, XML processing, and so on. The Python standard library has a clear naming interface, good documentation, and is easy to learn and use.
The Python community provides a number of third-party modules that are used in a way similar to standard libraries. Their functions are all-encompassing, covering scientific computing, web development, database interfaces, graphics systems in many areas, and mostly mature and stable. Third-party modules can be written in Python or C language. Swig,sip is often used to convert a library written in C into a Python module. The Boost C + + libraries contains a set of libraries that are boost.python so that programs written in Python or C + + can invoke each other. With a large number of tools based on the standard library, the ability to use low-level languages such as C and C++,python, which can be used as other library interfaces, has become a powerful glue language applied to other languages and tools.
The main features of the Python standard library are:
Text processing, including text formatting, regular expression matching, text difference calculation and merging, Unicode support, binary data processing and other functions
File processing, including file operations, creating temporary files, file compression and archiving, operation profiles and other functions
Operating system features, including thread and process support, IO multiplexing, date and time processing, call system functions, write journaling (logging) and other functions
network communication, including network sockets, SSL encrypted communication, asynchronous network communication and other functions
Network protocols, support various network protocols such as HTTP,FTP,SMTP,POP,IMAP,NNTP,XMLRPC, and provide a framework for writing Web servers
Support for the Html,sgml,xml format, including the processing of the.
Other functions, including internationalization support, math, HASH, tkinter, etc.
Python Standard library