The modules described in this chapter provide a wide range of string manipulation operations.
In addition, Python’s built-in string classes support the sequence type
methods described in the Sequence Types — str, unicode, list, tuple, bytearray, buffer, xrange section, and also the
string-specific methods described in the String Methods section.
To output formatted strings use template strings or the % operator
described in the String Formatting Operations section. Also, see the
re module for string functions based on regular expressions.
string — Common string operations
re — Regular expression operations
struct — Interpret strings as packed binary data
difflib — Helpers for computing deltas
StringIO — Read and write strings as filescStringIO — Faster version of StringIOtextwrap — Text wrapping and fillingcodecs — Codec registry and base classes
unicodedata — Unicode Databasestringprep — Internet String Preparationfpformat — Floating point conversions