Python内建的对象列表
2016-05-10 15:34
429 查看
Python内建的对象列表
刚写Python肯定会遇到这样的情况,想写些什么,但又不知从何写起...在我看来问题在于我们不知道有什么东东可以拿来玩,这里列出Python的内建对象,稍微归类了一下,多看几遍代码自然笔上生花,行云流水,一气呵成,一口气500行不费劲儿...
Built-in
buildin = { '__build_class__': < built-in function __build_class__ >, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': < built-in function __import__ >, 'pow': < built-in function pow >, 'sum': < built-in function sum > , 'abs': < built-in function abs > , 'max': < built-in function max > , 'min': < built-in function min > , 'ord': < built-in function ord >, 'round': < built-in function round >, 'format': < built-in function format >, 'len': < built-in function len >, 'bin': < built-in function bin >, 'oct': < built-in function oct >, 'divmod': < built-in function divmod >, 'print': < built-in function print >, 'next': < built-in function next >, 'eval': < built-in function eval >, 'repr': < built-in function repr >, 'exec': < built-in function exec >, 'ascii': < built-in function ascii >, 'chr': < built-in function chr >, 'hash': < built-in function hash >, 'hex': < built-in function hex >, 'hasattr': < built-in function hasattr >, 'setattr': < built-in function setattr >, 'getattr': < built-in function getattr >, 'delattr': < built-in function delattr >, 'issubclass': < built-in function issubclass >, 'isinstance': < built-in function isinstance >, 'globals': < built-in function globals >, 'id': < built-in function id >, 'dir': < built-in function dir >, 'vars': < built-in function vars >, 'locals': < built-in function locals >, 'any': < built-in function any >, 'all': < built-in function all >, 'iter': < built-in function iter >, 'open': < built-in function open >, 'callable': < built-in function callable >, 'input': < built-in function input >, 'sorted': < built-in function sorted >, 'compile': < built-in function compile >, 'bool': < class 'bool' >, 'tuple': < class 'tuple' > , 'set': < class 'set' > , 'dict': < class 'dict' > , 'str': < class 'str' > , 'int': < class 'int' > , 'bytearray': < class 'bytearray' > , 'enumerate': < class 'enumerate' >, 'map': < class 'map' >, 'slice': < class 'slice' >, 'range': < class 'range' >, 'True': True, 'list': < class 'list' >, 'float': < class 'float' >, 'bytes': < class 'bytes' >, 'type': < class 'type' > , 'zip': < class 'zip' >, 'object': < class 'object' >, 'super': < class 'super' > , 'False': False, 'None': None, '__debug__': True, '_': None, '__name__': 'builtins', '__loader__': < class '_frozen_importlib.BuiltinImporter' > , '__package__': '', '__spec__': ModuleSpec(name='builtins', loader= < class '_frozen_importlib.BuiltinImporter' >), 'exit': 'Use exit() or Ctrl - Z plus Return to exit', 'quit': 'Use quit() or Ctrl - Z plus Return to exit', 'help': 'Type help() for interactive help, or help(object) for help about object.', 'filter': < class 'filter' > , 'property': < class 'property' > , 'staticmethod': < class 'staticmethod' > , 'classmethod': < class 'classmethod' > , 'complex': < class 'complex' > , 'SystemExit': < class 'SystemExit' > , 'KeyboardInterrupt': < class 'KeyboardInterrupt' > , 'GeneratorExit': < class 'GeneratorExit' > , 'StopIteration': < class 'StopIteration' > , 'frozenset': < class 'frozenset' > , 'reversed': < class 'reversed' > , 'memoryview': < class 'memoryview' > , 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'BaseException': < class 'BaseException' > , 'Exception': < class 'Exception' > , 'PendingDeprecationWarning': < class 'PendingDeprecationWarning' > , 'UserWarning': < class 'UserWarning' >, 'UnicodeWarning': < class 'UnicodeWarning' >, 'SyntaxWarning': < class 'SyntaxWarning' >, 'RuntimeWarning': < class 'RuntimeWarning' >, 'ResourceWarning': < class 'ResourceWarning' >, 'BytesWarning': < class 'BytesWarning' >, 'Warning': < class 'Warning' >, 'ImportWarning': < class 'ImportWarning' >, 'DeprecationWarning': < class 'DeprecationWarning' >, 'FutureWarning': < class 'FutureWarning' >, 'ConnectionRefusedError': < class 'ConnectionRefusedError' > , 'OverflowError': < class 'OverflowError' >, 'IsADirectoryError': < class 'IsADirectoryError' >, 'UnicodeEncodeError': < class 'UnicodeEncodeError' >, 'OSError': < class 'OSError' >, 'NotADirectoryError': < class 'NotADirectoryError' >, 'FloatingPointError': < class 'FloatingPointError' >, 'BlockingIOError': < class 'BlockingIOError' >, 'MemoryError': < class 'MemoryError' >, 'IndexError': < class 'IndexError' >, 'ConnectionError': < class 'ConnectionError' >, 'IndentationError': < class 'IndentationError' >, 'TimeoutError': < class 'TimeoutError' >, 'SystemError': < class 'SystemError' >, 'ConnectionResetError': < class 'ConnectionResetError' >, 'UnicodeTranslateError': < class 'UnicodeTranslateError' >, 'ZeroDivisionError': < class 'ZeroDivisionError' >, 'ImportError': < class 'ImportError' >, 'UnboundLocalError': < class 'UnboundLocalError' >, 'EOFError': < class 'EOFError' >, 'AssertionError': < class 'AssertionError' >, 'WindowsError': < class 'OSError' >, 'FileNotFoundError': < class 'FileNotFoundError' >, 'UnicodeDecodeError': < class 'UnicodeDecodeError' >, 'BufferError': < class 'BufferError' >, 'KeyError': < class 'KeyError' >, 'IOError': < class 'OSError' >, 'ArithmeticError': < class 'ArithmeticError' >, 'AttributeError': < class 'AttributeError' >, 'BrokenPipeError': < class 'BrokenPipeError' >, 'ConnectionAbortedError': < class 'ConnectionAbortedError' >, 'FileExistsError': < class 'FileExistsError' >, 'TabError': < class 'TabError' >, 'NameError': < class 'NameError' >, 'ProcessLookupError': < class 'ProcessLookupError' >, 'ReferenceError': < class 'ReferenceError' >, 'PermissionError': < class 'PermissionError' >, 'ValueError': < class 'ValueError' >, 'LookupError': < class 'LookupError' >, 'NotImplementedError': < class 'NotImplementedError' >, 'SyntaxError': < class 'SyntaxError' >, 'TypeError': < class 'TypeError' >, 'ChildProcessError': < class 'ChildProcessError' >, 'InterruptedError': < class 'InterruptedError' >, 'EnvironmentError': < class 'OSError' >, 'RuntimeError': < class 'RuntimeError' >, 'UnicodeError': < class 'UnicodeError' > }
砖头
码代码砌墙砖头是原材料,熟悉了各种砖头的形状特点,就可以平地起高楼了。相关文章推荐
- [LeetCode]题解(python):147-Insertion Sort List
- [LeetCode]题解(python):146-LRU Cache
- Python处理Excel(四):自定义类处理Excel数据
- python面向对象编程基础II(类的继承)
- Python基础篇【第8篇】: Socket编程(二)SocketServer
- Python实现欧拉计划22题
- python 多个关键字替换
- 102. Binary Tree Level Order Traversal [easy] (Python)
- Python详说正则表达式(对常用的关键字符的讲解)
- Python学习笔记:集合(set)基本内容
- [LINK]用Python计算昨天、今天和明天的日期时间
- [LINK]python中的日期和时间格式化输出
- Python:浮点运算的问题与限制
- [LINK]Python MySQLdb 学习总结
- [转]Python 命令行参数和getopt模块详解
- 基于python的百度云网盘资源搜索引擎设计架构
- [LeetCode]题解(python):145-Binary Tree Postorder Traversal
- Python 学习笔记9(装饰器,decorator)
- [LeetCode]题解(python):144-Binary Tree Preorder Traversal
- python 获取局域网内的广播地址