热门关键字:  ubuntu  分区  函数  linux系统进程  Fedora

Python的内置函数

来源: 作者: 时间:2008-03-19 Tag: 点击:
dir(__builtins__)  将显示所有内置函数 如下:
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'Deprec
ationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False',
 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError
', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInter
rupt', 'LookupError', 'MemoryError', 'NameError', 'None', 'NotImplemented', 'Not
ImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'Ref
erenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError', 'StopIteration'
, 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'True
', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError',
 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'Valu
eError', 'Warning', 'WindowsError', 'ZeroDivisionError', '__debug__', '__doc__',
 '__import__', '__name__', 'abs', 'all', 'any', 'apply', 'basestring', 'bool', '
buffer', 'callable', 'chr', 'classmethod', 'cmp', 'coerce', 'compile', 'complex'
, 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval
', 'execfile', 'exit', 'file', 'filter', 'float', 'frozenset', 'getattr', 'globa
ls', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'intern', 'isinstan
ce', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'long', 'map', 'm
ax', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'quit', 'range',
'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr',
'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unic
hr', 'unicode', 'vars', 'xrange', 'zip']

上一篇:没有了
下一篇:没有了
最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
栏目列表