Skip to content

Built-in Functions

## 分类

type system相关

类型查询与操作

super()

callable()

issubclass()

isinstance()

type()

SUMMARY : What are the differences between type() and isinstance()?

decorator

classmethod()

staticmethod()

property()

属性操作

setattr()

delattr()

getattr()

hasattr()

symbol table

globals()

locals()

dir()

vars()

内置数据类型

object()

按照3.2. The standard type hierarchy中进行组织

numbers.Number

int()

bool()

float()

complex()

Sequences
Immutable sequences

str()

tuple()

bytes()

Mutable sequences

list()

bytearray()

range()

Rather than being a function, range is actually an immutable sequence type, as documented in Ranges and Sequence Types — list, tuple, range.

Set types

set()

frozenset()

Mappings

dict()

TODO

slice()

数进制

bin()

oct()

hex()

字符串与整数

chr()

ord()

转换为字符串

ascii()

format()

repr()

转换为二进制

memoryview()

算法

all()

any()

filter()

max()

min()

sum()

sorted()

map()

next()

enumerate()

iter()

len()

reversed()

sorted()

zip()

算术运算

abs()

divmod()

hash()

pow()

round()

执行流程控制

breakpoint()

IO

input()

open()

print()

python解释器相关

compile()

eval()

exec()

help()

id()

__import__()

Built-in Functions
abs() delattr() hash() memoryview() set()
all() dict() help() min() setattr()
any() dir() hex() next() slice()
ascii() divmod() id() object() sorted()
bin() enumerate() input() oct() staticmethod()
bool() eval() int() open() str()
breakpoint() exec() isinstance() ord() sum()
bytearray() filter() issubclass() pow() super()
bytes() float() iter() print() tuple()
callable() format() len() property() type()
chr() frozenset() list() range() vars()
classmethod() getattr() locals() repr() zip()
compile() globals() map() reversed() __import__()
complex() hasattr() max() round()