六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 40|回复: 0

python 内置函数 ******模块

[复制链接]

升级  55.33%

110

主题

110

主题

110

主题

举人

Rank: 3Rank: 3

积分
366
 楼主| 发表于 2013-1-15 02:46:31 | 显示全部楼层 |阅读模式
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.html    Python常用内置函数:
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']
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表