Index — Python 3.15.2 documentation
Symbols · comment, [1], [2] · in doctests · in printf-style formatting, [1] · in regular expressions · in string formatting · source encoding declaration.
Symbols · comment, [1], [2] · in doctests · in printf-style formatting, [1] · in regular expressions · in string formatting · source encoding declaration.
(exclamation mark). in formatted string literal ! (pdb command) ! (エクスクラメーション). curses モジュール内 · glob 形式のワイルドカード, [1] ...
It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. For a description of standard objects and modules, see Python built-ins reference and The Python standard library.
22 hours ago · What's new in Python 3.15? 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 Python setup and usage How to install, configure, and use Python Python HOWTOs In-depth topic manuals Installing Python ...
For example, the length of word[1:3] is 2. Attempting to use an index that is too large will result in an errorPython strings cannot be changed — they are immutable. Therefore, assigning to an indexed position in the string results in an error
Python logo. Theme. Auto Light Dark.sqlite_errorname (sqlite3.Error attribute). SQLITE_IGNORE (in module sqlite3).
array. Space efficient arrays of uniformly typed numeric values. ast. Abstract Syntax Tree classes and manipulation.Generate byte-code files from Python source files. pyclbr. Supports information extraction for a Python module browser.
1 day ago · One is to use the freeze tool, which is included in the Python source tree as Tools/freeze. It converts Python byte code to C arrays; with a C compiler you can embed all your modules into a new program, which is then linked with the standard Python modules.
| 1. Whetting Your Appetite¶. If you do much work on computers, eventually you find that there’s some task you’d like to automate. For example, you may wish to perform a search-and-replace over a large number of text files, or rename and rearrange a bunch of photo files in a complicated way.
Mar 13, 2018 · 5.5. Dictionaries ¶ Another useful data type built into Python is the dictionary (see Mapping Types — dict). Dictionaries are sometimes found in other languages as “associative memories” or “associative arrays”.