1. >>> dir(__builtins__)//查看内置函数(BIF)列表
  2. ['ArithmeticError', 'AssertionError', 'AttributeError',
  3. 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning',
  4. 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError',
  5. 'DeprecationWarning',
  6. 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception',
  7. 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning',
  8. 'GeneratorExit',
  9. 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError',
  10. 'KeyError', 'KeyboardInterrupt',
  11. 'LookupError',
  12. 'MemoryError', NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError',
  13. 'OSError', 'OverflowError',
  14. 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError',
  15. 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning',
  16. 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit',
  17. 'TabError', 'TimeoutError', 'True', 'TypeError',
  18. 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning',
  19. 'ValueError',
  20. 'Warning', 'WindowsError',
  21. 'ZeroDivisionError',
  22. '_', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__',
  23. 'abs', 'all', 'any', 'ascii',
  24. 'bin', 'bool', 'bytearray', 'bytes',
  25. 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits',
  26. 'delattr', 'dict', 'dir', 'divmod',
  27. 'enumerate', 'eval', 'exec', 'exit',
  28. 'filter', 'float', 'format', 'frozenset',
  29. 'getattr', 'globals',
  30. 'hasattr', 'hash', 'help', 'hex',
  31. 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter',
  32. 'len', 'license', 'list', 'locals',
  33. 'map', 'max', 'memoryview', 'min',
  34. 'next',
  35. 'object', 'oct', 'open', 'ord',
  36. 'pow', 'print', 'property',
  37. 'quit',
  38. 'range', 'repr', 'reversed', 'round',
  39. 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super',
  40. 'tuple', 'type',
  41. 'vars',
  42. 'zip']
  43. >>> help(input)//查看内置函数(BIF)功能描述
  44. Help on built-in function input in module builtins:
  45.  
  46. input(prompt=None, /)
  47. Read a string from standard input. The trailing newline is stripped.
  48.  
  49. The prompt string, if given, is printed to standard output without a
  50. trailing newline before reading input.
  51.  
  52. If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
  53. On *nix systems, readline is used if available.
  54.  
  55. >>> help(range)
  56. Help on class range in module builtins:
  57.  
  58. class range(object)
  59. | range(stop) -> range object
  60. | range(start, stop[, step]) -> range object
  61. |
  62. | Return an object that produces a sequence of integers from start (inclusive)
  63. | to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1.
  64. | start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3.
  65. | These are exactly the valid indices for a list of 4 elements.
  66. | When step is given, it specifies the increment (or decrement).
  67. |
  68. | Methods defined here:
  69. |
  70. | __contains__(self, key, /)
  71. | Return key in self.
  72. |
  73. | __eq__(self, value, /)
  74. | Return self==value.
  75. |
  76. | __ge__(self, value, /)
  77. | Return self>=value.
  78. |
  79. | __getattribute__(self, name, /)
  80. | Return getattr(self, name).
  81. |
  82. | __getitem__(self, key, /)
  83. | Return self[key].
  84. |
  85. | __gt__(self, value, /)
  86. | Return self>value.
  87. |
  88. | __hash__(self, /)
  89. | Return hash(self).
  90. |
  91. | __iter__(self, /)
  92. | Implement iter(self).
  93. |
  94. | __le__(self, value, /)
  95. | Return self<=value.
  96. |
  97. | __len__(self, /)
  98. | Return len(self).
  99. |
  100. | __lt__(self, value, /)
  101. | Return self<value.
  102. |
  103. | __ne__(self, value, /)
  104. | Return self!=value.
  105. |
  106. | __new__(*args, **kwargs) from builtins.type
  107. | Create and return a new object. See help(type) for accurate signature.
  108. |
  109. | __reduce__(...)
  110. | helper for pickle
  111. |
  112. | __repr__(self, /)
  113. | Return repr(self).
  114. |
  115. | __reversed__(...)
  116. | Return a reverse iterator.
  117. |
  118. | count(...)
  119. | rangeobject.count(value) -> integer -- return number of occurrences of value
  120. |
  121. | index(...)
  122. | rangeobject.index(value, [start, [stop]]) -> integer -- return index of value.
  123. | Raise ValueError if the value is not present.
  124. |
  125. | ----------------------------------------------------------------------
  126. | Data descriptors defined here:
  127. |
  128. | start
  129. |
  130. | step
  131. |
  132. | stop

查看python 3中的内置函数列表,以及函数功能描述的更多相关文章

  1. python类中的内置函数

    __init__():__init__方法在类的一个对象被建立时,马上运行.这个方法可以用来对你的对象做一些你希望的初始化.注意,这个名称的开始和结尾都是双下划线.代码例子: #!/usr/bin/p ...

  2. python基础19 -------面向对象终结篇(介绍python对象中各种内置命令)

    一.isinstance()和issubclass()命令 1.isinstance(对象,类型) 用来判定该对象是不是此类型或者说是该对象是不是此类的对象,返回结果为True和False,如图所示. ...

  3. python 类中__call__内置函数的使用

    class F: def __call__(self, *args, **kwargs): print('执行__call__') s = F()s() 先给类创建一个对象,直接通过对象来执行,就会自 ...

  4. Python常用模块中常用内置函数的具体介绍

    Python作为计算机语言中常用的语言,它具有十分强大的功能,但是你知道Python常用模块I的内置模块中常用内置函数都包括哪些具体的函数吗?以下的文章就是对Python常用模块I的内置模块的常用内置 ...

  5. oop(面向对象)中的内置函数

    oop中的内置函数 ​ 类中存在一些名字带有双下划线__开头的内置函数, 这些函数会在某些时候被自动调用,例如之前学习的迭代器__init__函数 一.isinstance(obj, cls) 检查o ...

  6. python 类(object)的内置函数

    python 类(object)的内置函数 # python 类(object)的内置函数 ### 首先 #### 以__双下划线开头的内置函数 __ #### __往往会在某些时候被自动调用,例如之 ...

  7. python基础之常用内置函数

    前言 python有许多内置的函数,它们定义在python的builtins模块,在python的代码中可以直接使用它们. 常用的内置函数 类型转换 int python的整数类型都是int类型的实例 ...

  8. python内置常用高阶函数(列出了5个常用的)

    原文使用的是python2,现修改为python3,全部都实际输出过,可以运行. 引用自:http://www.cnblogs.com/duyaya/p/8562898.html https://bl ...

  9. 转】SparkSQL中的内置函数

    原博文来自于: http://blog.csdn.net/u012297062/article/details/52207934    感谢! 使用Spark SQL中的内置函数对数据进行分析,Spa ...

随机推荐

  1. UITableView基础入门

    新建一个Single View Application 添加一个空类如下: using System; using UIKit; using Foundation; namespace BasicTa ...

  2. oracle 的sys 和 system 账号

    sys 和 system 账号有啥区别?一直以来懵懵懂懂,只想当然的认为就是权限大小不一样. 但是,它们都是管理员? 现在,我知道有一个区别了: [sys]只能用sysdba身份登录(也许还有syso ...

  3. 使用unidac 连接FB 3.0 (含嵌入版)

    unidac  是delphi 最强大的数据库连接控件,没有之一.详细信息可以通过官网了解. Firebird是一个跨平台的关系数据库系统,目前能够运行在Windows.linux和各种Unix操作系 ...

  4. Bubble Cup X - Finals [Online Mirror] B. Neural Network country 矩阵快速幂加速转移

    B. Neural Network country time limit per test 2 seconds memory limit per test 256 megabytes Due to t ...

  5. 清除inline-block元素默认间距

    1. font-size:0; 2.letter-spaceing:-0.5em;

  6. 九度OJ 1112:拦截导弹 (DP、最长下降子序列)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:3124 解决:1525 题目描述: 某国为了防御敌国的导弹袭击,开发出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能 ...

  7. 使用MSSQL同步&发布数据库快照遇到错误:对路径“xxxxx”访问被拒绝的解决方法

    使用MSSQL同步 数据库同步做后后测试:先在同步那台服务器(服务器A)数据库里修改里面数据库,然后再去被同步那台服务器(服务器B)看下数据有没被同步过去 发布数据库快照遇到错误:对路径“xxxxx” ...

  8. MongoDB 学习三

    这章我们学习MongoDB的查询操作. Introduction to find find方法用于执行MongoDB的查询操作.它返回collecion中的documents子集,没有添加参数的话它将 ...

  9. OI中字符串读入和处理

    OI中字符串读入和处理 在NOIP的"大模拟"题中,往往要对字符串进行读入并处理,这些字符串有可能包含空格并以\n作为分割,传统的cin >> scanf() 等等,不 ...

  10. 动态负载均衡(Nginx+Consul+UpSync)环境搭建

    首先 安装好 Consul upsync 然后: 1.配置安装Nginx 需要做配置,包括分组之类的,创建目录,有些插件是需要存放在这些目录的 groupadd nginx useradd -g ng ...