日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python中的对象列表_Python内建的对象列表

發布時間:2025/3/8 python 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python中的对象列表_Python内建的对象列表 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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' >

}

磚頭

碼代碼砌墻磚頭是原材料,熟悉了各種磚頭的形狀特點,就可以平地起高樓了。

總結

以上是生活随笔為你收集整理的python中的对象列表_Python内建的对象列表的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。