Tin mới
10. Brief tour of the standard library
12. Virtual Environments and Packages
reprlib: Alternate repr() implementation with size limits.
The reprlib module provides a version of repr() customized for abbreviated displays of large or deeply nested containers:
The reprlib module provides a version of repr() customized for abbreviated displays of large or deeply nested containers:
The reprlib module provides a version of repr() customized for abbreviated displays of large or deeply nested containers:
textwrap: Text wrapping and filling
The reprlib module provides a version of repr() customized for abbreviated displays of large or deeply nested containers:
locale: Internationalization services.
The reprlib module provides a version of repr() customized for abbreviated displays of large or deeply nested containers:
string: Common string operations.
The string module includes a versatile Template class with a simplified syntax suitable for editing by end-users. This allows users to customize their applications without having to alter the application.
struct: Interpret bytes as packed binary data.
The struct module provides pack() and unpack() functions for working with variable length binary record formats. The following example shows how to loop through header information in a ZIP file without using the zipfile
zipfile: Read and write ZIP-format archive files.
The struct module provides pack() and unpack() functions for working with variable length binary record formats. The following example shows how to loop through header information in a ZIP file without using the zipfile
threading: Thread-based parallelism.
Threading is a technique for decoupling tasks which are not sequentially dependent. Threads can be used to improve the responsiveness of applications that accept user input while other tasks run in the background. A rela
queue: A synchronized queue class.
Threading is a technique for decoupling tasks which are not sequentially dependent. Threads can be used to improve the responsiveness of applications that accept user input while other tasks run in the background. A rela
logging: Flexible event logging system for applications.
The logging module offers a full featured and flexible logging system. At its simplest, log messages are sent to a file or to sys.stderr:
Python does automatic memory management (reference counting for most objects and garbage collection to eliminate cycles). The memory is freed shortly after the last reference to it has been eliminated.
weakref: Support for weak references and weak dictionaries.
Python does automatic memory management (reference counting for most objects and garbage collection to eliminate cycles). The memory is freed shortly after the last reference to it has been eliminated.
array: Space efficient arrays of uniformly typed numeric values.
Many data structure needs can be met with the built-in list type. However, sometimes there is a need for alternative implementations with different performance trade-offs.
collections: Container datatypes
Many data structure needs can be met with the built-in list type. However, sometimes there is a need for alternative implementations with different performance trade-offs.
bisect: Array bisection algorithms for binary searching.
Many data structure needs can be met with the built-in list type. However, sometimes there is a need for alternative implementations with different performance trade-offs.
heapq: Heap queue algorithm (a.k.a. priority queue).
Many data structure needs can be met with the built-in list type. However, sometimes there is a need for alternative implementations with different performance trade-offs.
decimal: Implementation of the General Decimal Arithmetic Specification.
The decimal module offers a Decimal datatype for decimal floating-point arithmetic. Compared to the built-in float implementation of binary floating point, the class is especially helpful for