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¶中进行组织
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__()