Python built-ins reference¶
Python comes with a number of built-in functions and classes.
The built-in classes include data types that would normally be considered part of the "core" of a language, such as numbers and lists. For these types, the Python language core defines the form of literals and places some constraints on their semantics, but does not fully define the semantics.
The built-ins also include functions and exceptions --- objects that can
be used by all Python code without the need of an import statement.
Some of these are defined by the core language, but many are not essential for
the core semantics and are only described here.
参考
In addition to the built-ins, Python provides an extensive importable standard library, see The Python standard library.
- 組み込み型
- 真理値判定
- ブール演算 ---
and,or,not - 比較
- 数値型
int,float,complex - ブーリアン型 -
bool - イテレータ型
- シーケンス型 ---
list,tuple,range - Text and Binary Sequence Type Methods Summary
- テキストシーケンス型 ---
str - バイナリシーケンス型 ---
bytes,bytearray,memoryview - set(集合)型 ---
set,frozenset - Mapping Types ---
dict - コンテキストマネージャ型
- 型アノテーション型 --- ジェネリックエイリアス 、 ユニオン
- その他の組み込み型
- 特殊属性
- 整数と文字列の変換での長さ制限
- 組み込み定数
- 組み込み関数
- 組み込み例外
- Thread Safety Guarantees
- Time complexity of operations on built-in types