Results for “python string replace site:docs.python.org command”
docs.python.org
Built-in Types — Python 3.15.2 documentation
... methods, see Text Sequence Type — str and the String Methods section below. ... By default, the value of a replacement field expression is converted to a string ...
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
... function, it is called for every non-overlapping occurrence of pattern. The function takes a single Match argument, and returns the replacement string. For ...
docs.python.org
Built-in Types — Python 3.12.16 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
Built-in functions — Python 3.15.2 documentation
The arguments are an object and a string. The string must be the name of one of the object's attributes. The function deletes the named attribute, provided the ...
docs.python.org
3. An Informal Introduction to Python — Python 3.15.2 documentation
' '"Isn\'t," they said.' In the Python shell, the string definition and output string can look different. The print() function produces ...
docs.python.org
1. Command line and environment — Python 3.15.2 documentation
argv[0] ), is a string reflecting the program's source. -c <command>¶. Execute the Python code in command. command can be one or ...