pyhon BIF
来源:互联网 发布:js array 删除 编辑:程序博客网 时间:2024/06/05 17:52
BIF(built-in functions) 顾名思义,就是内建函数。它们通常用来完成那些无法用Erlang完成的任务。比如将列表转换为元组或者获取当前的时间和日期。完成这些操作的函数,我们称之为BIF。
>>> dir<built-in function dir>>>> dir(__builtins__)['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '_', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip']>>> help(input)Help on built-in function input in module builtins:input(prompt=None, /) Read a string from standard input. The trailing newline is stripped. The prompt string, if given, is printed to standard output without a trailing newline before reading input. If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError. On *nix systems, readline is used if available.>>>
类型转换 :
有时候,可能需要执行的内置类型之间的转换。类型之间的转换,只需使用类名作为函数。
有几个内置的功能,从一种数据类型进行转换为另一种。这些函数返回一个表示转换值的新对象。
0 0
- pyhon BIF
- pyhon socket
- SWIG + Pyhon
- pyhon:缩进
- pyhon学习
- hello pyhon
- Pyhon--practice1
- 序列,序列--常见BIF
- PYTHON-BIF相关
- BIF:python内置函数
- 对象相关的BIF
- 序列有关BIF
- 字符串有关(BIF)
- 常用Python的BIF指令
- C++调用Pyhon实例
- pyhon 循环中的else
- 用Pyhon做个税筹划
- 数据备份crontab+pyhon
- Java-LeetCode-3Sum
- Codeforces 500C:New Year Book Reading(思维+贪心?)
- BZOJ3505: [Cqoi2014]数三角形 解题报告
- ios开发scrollView中contentSize、contentInset和contentOffset区别
- Echarts使用心得---(1)AJAX
- pyhon BIF
- spark JVM调优之原理概述以及降低cache操作的内存占比
- linux开启启动过程总结
- 优雅编程之这样处理继承关系,你就“正常”了(二十六)
- 微信网页授权获取用户信息--------小白教程(简单)
- TLAB
- 2016秋季练习
- BSOJ3068 BZOJ2500 noip模拟赛 幸福的道路 树的最长链+单调队列 或 RMQ
- 【机器学习】Centos下搭建php ocr开发环境