zoukankan      html  css  js  c++  java
  • Python 的內建模块

    >>> import __builtin__
    >>> dir(__builtin__)
    ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'Buffer
    Error', 'BytesWarning', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'Environme
    ntError', 'Exception', 'False', 'FloatingPointError', 'FutureWarning', 'Generato
    rExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexErr
    or', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError',
    'None', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'P
    endingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', '
    StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError',
    'SystemExit', 'TabError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDeco
    deError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'Unicod
    eWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivision
    Error', '__debug__', '__doc__', '__import__', '__name__', '__package__', 'abs',
    'all', 'any', 'apply', 'basestring', 'bin', 'bool', 'buffer', 'bytearray', 'byte
    s', 'callable', 'chr', 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'co
    pyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'e
    xecfile', 'exit', 'file', 'filter', 'float', 'format', 'frozenset', 'getattr', '
    globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'intern', 'isi
    nstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'long', 'map
    ', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'p
    rint', 'property', 'quit', 'range', 'raw_input', 'reduce', 'reload', 'repr', 're
    versed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 's
    um', 'super', 'tuple', 'type', 'unichr', 'unicode', 'vars', 'xrange', 'zip']
  • 相关阅读:
    13 内建属性 _getattribute_ 内建函数
    12 垃圾回收GC
    11 元类
    12 动态语言 __slots__
    11 作用域
    10 带参数的装饰器 通用装饰器 类装饰器
    9 装饰器
    8 闭包
    6 生成器 yield 协程
    cmd常用命令
  • 原文地址:https://www.cnblogs.com/sunshine-1/p/7372919.html
Copyright © 2011-2022 走看看