内置函数
截止到python3.6.2版本,共有68个内置函数
作用域相关
locals()
globals()
迭代器相关
range()
next()
iter()
字符串相关
eval()
exec()
input()
print()
内存相关
hash()
if()
文件操作相关
open()
模块相关
import
帮助
help()
调用相关
callable()
查看内存属性
dir()
数字相关
bool()
int()
float()
compilex()
进制转换
bin()
otc()
hex()
数字运算:
abs()
divmod()
pow()
sum()
max()
数据结构相关
列表和元祖
list()
tuple()
reversed()
字符串相关
str()
format()
bytes()
bytearray()
memoryview()
ord()
chr()
ascii()
repr()
数据集合
dict()
set()
其他相关
len()
enumerate()
all()
any()
zip()
迭代对象和函数
lambda()
sorted()
filter()
map()
reduce()
内置函数
浙公网安备 33010602011771号