1. 系統(tǒng)標(biāo)準(zhǔn)模塊
PYTHON 標(biāo)準(zhǔn)庫(kù)中提供了大量的模塊存崖,輔助開(kāi)發(fā)人員的軟件開(kāi)發(fā)工作
了解 PYTHON 官方標(biāo)準(zhǔn)模塊竣灌,有助于對(duì) PYTHON 的理解和操作
查看 PYTHON 內(nèi)建標(biāo)準(zhǔn)模塊
查看所有內(nèi)建模塊
>>>dir()
['annotations', 'builtins', 'doc', 'loader', 'name', 'package', 'spec']<
核心內(nèi)建模塊
>>>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. 系統(tǒng)內(nèi)建函數(shù)
系統(tǒng)內(nèi)建函數(shù)包含大量的操作處理仔沿,這里就較為重要功能較為強(qiáng)大的幾個(gè)函數(shù)做簡(jiǎn)單的介紹,其他的內(nèi)置函數(shù)請(qǐng)參考官方文檔