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 - Iteration-related types
- انواع دنباله ---
list،tuple،range - خلاصهی متدهای نوع دنبالهی متنی و دودویی
- نوع دنبالهی متنی ---
str - انواع دنبالهای دودویی ---
bytes،bytearray،memoryview - انواع مجموعهای ---
set،frozenset - Mapping types ---
dict,frozendict - انواع مدیر زمینه
- انواع حاشیهنویسی نوع --- Generic Alias، Union
- انواع توکار دیگر
- ویژگیهای خاص
- محدودیت طول تبدیل عدد صحیح به رشته
- ثابتهای توکار
- Built-in functions
- استثناهای توکار
- تضمینهای ایمنی نخ
- Time complexity of operations on built-in types