Results for “replace string method python docs code 2 class 1 site:docs.python.org game”
docs.python.org
Python 3.15.2 documentation
Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes. Library reference Standard library modules. Language reference Syntax and language elements.
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched ...
docs.python.org
Built-in Types — Python 3.12.16 documentation
Iterator Types¶. Python supports a concept of iteration over containers. This is implemented using two distinct methods; these are used to allow user-defined classes to support iteration. Sequences, described below in more detail, always support the iteration methods.
docs.python.org
Built-in Functions — Python 3.11.18 documentation
Class methods are different than C++ or Java static methods. If you want those, see staticmethod() in this section. For more information on class methods, see The standard type hierarchy. Changed in version 3.9: Class methods can now wrap other descriptors such as property().
docs.python.org
Built-in functions — Python 3.15.2 documentation
This function supports dynamic execution of Python code. source must be either a string or a code object. If it is a string, the string is parsed as a suite of ...
docs.python.org
Regular expression HOWTO — Python 3.15.2 documentation
If the regex pattern is expressed in bytes, this is equivalent to the class [a-zA-Z0-9_] . If the regex pattern is a string, \w will match all the characters ...
docs.python.org
codecs — Codec registry and base classes — Python 3.15.2 ...
Source code: Lib/codecs.py This module defines base classes for standard Python codecs (encoders and decoders) and provides access to the internal Python ...
docs.python.org
argparse — Parser for command-line options, arguments and ...
Source code: Lib/argparse.py Tutorial: This page contains the API reference information. For a more gentle introduction to Python command-line parsing, ...