Skip to content
murmot

Results for “python string replace example code java command 4 site:docs.python.org 1”

  • docs.python.org

    Built-in Types — Python 3.15.2 documentation

    Text Sequence Type — str ¶. Textual data in Python is handled with str objects, or strings. Strings are immutable sequences of Unicode code points. String literals are written in a variety of ways: Single quotes: 'allows embedded "double" quotes'.

  • docs.python.org

    re — Regular expression operations — Python 3.15.2 documentation

    1 day ago · This collides with Python’s usage of the same character for the same purpose in string literals; for example, to match a literal backslash, one might have to write '\\\\' as the pattern string, because the regular expression must be \\, and each backslash must be expressed as \\ inside a regular Python string literal.

  • docs.python.org

    組み込み型 — Python 3.7.17 ドキュメント

    演算には、複数の型でサポートされているものがあります; 特に、ほぼ全てのオブジェクトは、比較でき、真理値を判定でき、 ( repr() 関数や、わずかに異なる str() 関数 ...

  • docs.python.org

    argparse — Parser for command-line options, arguments and...

    For a more gentle introduction to Python command-line parsing, have a look at the argparse tutorial.Remaining command-line arguments are gathered into a list, including strings that look like options. This is useful for forwarding arguments to another command.

  • docs.python.org

    Built-in Types — Python 3.12.16 documentation

    Textual data in Python is handled with str objects, or strings. Strings are immutable sequences of Unicode code points. String literals are written in a variety of ways: Single quotes: 'allows embedded "double" quotes'.

  • docs.python.org

    Built-in functions — Python 3.15.2 documentation

    1 day ago · The optional source parameter can be used to initialize the array in a few different ways: If it is a string, you must also give the encoding (and optionally, errors) parameters; bytearray () then converts the string to bytes using str.encode (). If it is an integer, the array will have that size and will be initialized with null bytes.

  • docs.python.org

    Programming FAQ — Python 3.15.2 documentation

    1 day ago · For example, Cython can compile a slightly modified version of Python code into a C extension, and can be used on many different platforms. Cython can take advantage of compilation (and optional type annotations) to make your code significantly faster than when interpreted.

  • docs.python.org

    内置类型— Python 3.8.20 文档

    Aug 3, 2020 ... 有些操作受多种对象类型的支持;特别地,实际上所有对象都可以比较是否相等、检测逻辑值,以及转换为字符串(使用 repr() 函数或略有差异的 str() 函数) ...

  • docs.python.org

    3. An Informal Introduction to Python — Python 3.15.2 ...

    1 day ago · 3. An Informal Introduction to Python ¶ In the following examples, input and output are distinguished by the presence or absence of prompts (>>> and …): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with a prompt are output from the interpreter.