內(nèi)置函數(shù)
| Built-in Functions | ||||
|---|---|---|---|---|
| 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() | 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() | |
| bytearray() | filter() | issubclass() | pow() | super() |
| delattr() | hash() | memoryview() | set | |
截止到python版本3.6.2,現(xiàn)在python一共為我們提供了68個(gè)內(nèi)置函數(shù)。它們就是python提供給你直接可以拿來(lái)使用的所有函數(shù)。
內(nèi)置函數(shù)分類

作用域相關(guān)

基于字典的形式獲取局部變量和全局變量
globals()——獲取全局變量的字典
locals()——獲取執(zhí)行本方法所在命名空間內(nèi)的局部變量的字典
新聞熱點(diǎn)
疑難解答
圖片精選