python学习-内建函数(分类)
2016-08-16 11:57
435 查看
帮助: help()
输入输出:dir(),input(),open(),print()
基础类型:hex(),divmod(),ascii(),oct(),int(),str(),ord(),bool(),,tuple(),type(),bytes(),float(),chr(),complex()
集合:dict(),set(),list(),zip(), bytearray(),frozenset()
集合操作:
all(),any()
slice()
sum(),max(),min(),reversed(),sorted(),range()
map(),filter()
遍历:next(),enumerate(),iter()
数学:abs(),pow(),round(),hash()返回对象的哈希值。
类相关:
id(),memoryview()
object(),super()
classmethod(),staticmethod(),property()
isinstance(),issubclass()
delattr(),setattr(),getattr(),hasattr()
vars()#列出对象的全部属性、函数
调用外部模块、动态执行 : eval(),exec(),bin(),callable(),compile()
流程相关:
globals(),locals()
对象序列化: repr(),repr的结果可以被(eval执行)
__import__()
len(),format()
输入输出:dir(),input(),open(),print()
基础类型:hex(),divmod(),ascii(),oct(),int(),str(),ord(),bool(),,tuple(),type(),bytes(),float(),chr(),complex()
集合:dict(),set(),list(),zip(), bytearray(),frozenset()
集合操作:
all(),any()
slice()
sum(),max(),min(),reversed(),sorted(),range()
map(),filter()
遍历:next(),enumerate(),iter()
数学:abs(),pow(),round(),hash()返回对象的哈希值。
类相关:
id(),memoryview()
object(),super()
classmethod(),staticmethod(),property()
isinstance(),issubclass()
delattr(),setattr(),getattr(),hasattr()
vars()#列出对象的全部属性、函数
调用外部模块、动态执行 : eval(),exec(),bin(),callable(),compile()
流程相关:
globals(),locals()
对象序列化: repr(),repr的结果可以被(eval执行)
__import__()
len(),format()
相关文章推荐
- 函数名function是一个数据类型,可以赋值 分类: python基础学习 2013-09-12 11:01 366人阅读 评论(0) 收藏
- python apply()函数 分类: python学习 2014-07-30 15:33 180人阅读 评论(0) 收藏
- Python修炼--常用字符串、数学函数 分类: python基础学习 2013-06-16 13:23 205人阅读 评论(0) 收藏
- python常用函数总结 分类: python基础学习 2014-02-07 14:12 260人阅读 评论(0) 收藏
- Python学习笔记整理(十二)Python的函数
- Python学习笔记总结(二):函数和模块
- Python 学习笔记(一)语句,变量,函数
- python常用函数分类整理
- OpenGL学习记录(三)--函数库分类
- Learn Python The Hard Way学习(20) - 函数和文件
- Python:通过计算阶乘来学习lambda和reduce这两个函数的使用
- Python 学习笔记:需要仔细阅读一个函数
- Learn Python The Hard Way学习(35) - 分支和函数
- Python模块学习之os常用函数
- Learn Python The Hard Way学习(18) - 命名,变量,代码,函数
- Python2.7 学习笔记 (二)—— 函数,模块,正则
- Python学习笔记(5):函数
- Python函数学习笔记
- python学习--函数使用
- python学习之模块函数