68个内置函数

⼀一
.
:
1.
内置函数
什什么是内置函数? 就是python给你提供的. 拿来直接⽤用的函数, 比如print., input等等. 截⽌止到python版本3.6.2 python
⼀一共提供了了68个内置函数. 他们就是python直接提供给我们的. 有⼀一些我们已经⽤用过了了. 有⼀一些还没有⽤用过
. 还有⼀一些需要学完了了⾯面向对象才能继续学习的. 今天我们就认识⼀一下python的内置函数.
abs() dict() help() min() setattr()
all() dir() hex() next() slice()
any() divmod() id() object() sorted()
ascii() enumerate() input() oct() staticmethod()
bin() eval() int() open() str() bool()
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()
delattr() hash() memoryview() set()
作⽤用域相关:
locals() 返回当前作⽤用域中的名字
作⽤用域相关:
locals() 返回当前作⽤用域中的名字

迭代器相关:
range() ⽣生成数据

猜你喜欢

转载自blog.csdn.net/HZY199321/article/details/84979739
68