
python
一只梨儿
这个作者很懒,什么都没留下…
展开
-
Python doc v2.7.6 ------ 5.2.10.1. Generator-iterator methods
This subsection describes the methods of a generator iterator. They can be used to control the execution of a generator function.Note that calling any of the generator methods below when the gener转载 2014-03-29 11:40:56 · 841 阅读 · 0 评论 -
Customizing authentication in Django (定制DJango权限功能)记忆的线索
原文:https://docs.djangoproject.com/en/1.6/topics/auth/customizing/Customizing authentication in DjangoThe authentication that comes with Django is good enough for most common cases, but you may翻译 2014-04-02 21:46:03 · 3400 阅读 · 0 评论 -
python 内建函数,一点一点记
hasattr(object, name)说明:判断对象object是否包含名为name的特性(hasattr是通过调用getattr(ojbect, name)是否抛出异常来实现的)。参数object:对象。参数name:特性名称。示例:原创 2014-10-07 22:06:26 · 755 阅读 · 0 评论 -
Python 命名空间
Python namespaces A nam原创 2014-11-23 09:36:16 · 578 阅读 · 0 评论