Built-in functions — Python 3.15.2 documentation
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
array_hook (callable | None) – If set, a function that is called with the result of any JSON array literal decoded as a Python list. The return value of this function will be used instead of the list. This feature can be used to implement custom decoders.
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see ...
For example, del modname.the_answer will remove the attribute the_answer from the object named by modname. Namespaces are created at different moments and have different lifetimes. The namespace containing the built-in names is created when the Python interpreter starts up...
Symbols · comment, [1], [2] · in doctests · in printf-style formatting, [1] · in regular expressions · in string formatting · source encoding declaration.
TypeError: can only concatenate str (not "int") to str. The last line of the error message indicates what happened. Exceptions come in different types, and the type is printed as part of the message: the types in the example are ZeroDivisionError, NameError and TypeError.
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'.
The Python Enhancement Proposal which proposed this addition to Python.A csvfile must be an iterable of strings, each in the reader’s defined csv format. A csvfile is most commonly a file-like object or list. If csvfile is a file object, it should be opened with newline=''.
主な変更には、遅延インポート、組み込み型 frozendict と sentinel、デフォルトのエンコーディングの UTF-8 化、内包表記でのアンパック、フリースレッドビルド向けの安定 ...
(exclamation mark). in formatted string literal ! (pdb command) ! (エクスクラメーション). curses モジュール内 · glob 形式のワイルドカード, [1] ...