python 内置函数 ******模块
python模块python模块安装python模块路径python re模块python os模块python time模块python xml模块python常用模块python email模块python加密模块 http://www.okpython.com/bbs/thread-2141-1-1.html python中国1. http://stckiss.iteye.com/blog/261739
getattr type str int float len dir help callable
2. http://blog.chinaunix.net/u3/93327/showart_1864574.html
lambda filter zip
3. http://blog.sina.com.cn/s/blog_4b394e500100dx1c.htmlPython常用内置函数:
Chapter 1.常用函数 Chapter 2. 内置类型转换函数 Chapter 3. 序列处理函数 Chapter 4. String模块
4. 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']
页:
[1]