Skip to content
murmot

Results for “python string replace function site:docs.python.org pdf”

  • docs.python.org

    Built-in Types — Python 3.11.18 documentation

    Since Python’s floats are stored internally as binary numbers, converting a float to or from a decimal string usually involves a small rounding error. In contrast, hexadecimal strings allow exact representation and specification of floating-point numbers.

  • docs.python.org

    re — Regular expression operations — Python 3.15.2 documentation

    1 day ago · So r"\n" is a two-character string containing '\' and 'n', while "\n" is a one-character string containing a newline. Usually patterns will be expressed in Python code using this raw string notation. It is important to note that most regular expression operations are available as module-level functions and methods on compiled regular expressions.

  • docs.python.org

    Built-in Functions — Python 3.11.18 documentation

    The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.This function supports dynamic execution of Python code. object must be either a string or a code object.

  • docs.python.org

    Regular expression HOWTO — Python 3.15.2 documentation

    1 day ago · Regular expression HOWTO ¶ Abstract This document is an introductory tutorial to using regular expressions in Python with the re module. It provides a gentler introduction than the corresponding section in the Library Reference. Introduction ¶ Regular expressions (called REs, or regexes, or regex patterns) are essentially a tiny, highly specialized programming language embedded inside Python ...

  • docs.python.org

    Text Processing Services — Python 3.15.2 documentation

    15 hours ago · Text Processing Services ¶ The modules described in this chapter provide a wide range of string manipulation operations and other text processing services. The codecs module described under Binary Data Services is also highly relevant to text processing. In addition, see the documentation for Python’s built-in string type in Text Sequence Type — str.

  • docs.python.org

    Index — Python 3.15.2 documentation

    pdf() (statistics.NormalDist method) · PDWORD (class in ctypes.wintypes) ... strings (string.templatelib.Template attribute) · strings, documentation, [1] ...

  • docs.python.org

    textwrap — Text wrapping and filling — Python 3.15.2 ...

    15 hours ago · Source code: Lib/textwrap.py The textwrap module provides some convenience functions, as well as TextWrapper, the class that does all the work. If you’re just wrapping or filling one or two text strings, the convenience functions should be good enough; otherwise, you should use an instance of TextWrapper for efficiency.