美文网首页
python标准模块与系统内建函数

python标准模块与系统内建函数

作者: 昵称光被占用 | 来源:发表于2019-06-17 09:15 被阅读0次

1. 系统标准模块

PYTHON 标准库中提供了大量的模块,辅助开发人员的软件开发工作
了解 PYTHON 官方标准模块,有助于对 PYTHON 的理解和操作
查看 PYTHON 内建标准模块

查看所有内建模块
>>>dir()        

['annotations', 'builtins', 'doc', 'loader', 'name', 'package', 'spec']<

核心内建模块
>>>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','ModuleNotFoundError', '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', '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']<

2. 系统内建函数

系统内建函数包含大量的操作处理,这里就较为重要功能较为强大的几个函数做简单的介绍,其他的内置函数请参考官方文档

相关文章

  • python标准模块与系统内建函数

    1. 系统标准模块 PYTHON 标准库中提供了大量的模块,辅助开发人员的软件开发工作了解 PYTHON 官方标准...

  • Python29_模块进阶(介绍)

    标准模块:一般来说,在任何语言当中,标准指的是默认常用的功能 python中的常用库 builtins 内建函数默...

  • 19-01-07模块

    1.什么是模块 在python中一个py文件就是一个模块 a.系统模块(标准库) - python系统提供的模块(...

  • 什么是模块

    1.什么是模块 在python中一个py文件就是一个模块 a.系统模块(标准库) - python系统提供的模块(...

  • 2019-01-07day11总结

    1.模块 1.什么是模块 在python中一个py文件就是一个模块 a.系统模块(标准库) - python系统提...

  • 2019-01-08

    1.模块 1.什么是模块在python中一个py文件就是一个模块 a.系统模块(标准库) - python系统提供...

  • python 总结

    python 随笔 关键字 基础 内建函数 技巧 模块 进阶

  • 列表、函数高级操作、标准模块内建函数

    Python知识总结 列表、函数、标准模块内建函数 1. 列表快速生成方式 列表中如果存储大量的数据,会导致内存急...

  • random--生成伪随机数

    标签: Python 模块 random是Python内建函数,作用是产生随机数1.导入模块: 2.random模...

  • (三)python常用标准库

    python常用标准库 python标准库常见模块 操作系统相关:os 时间与日期:time、datetime 科...

网友评论

      本文标题:python标准模块与系统内建函数

      本文链接:https://www.haomeiwen.com/subject/hpzniftx.html