Django
liangcc611
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
django datetime
from datetime import time,datetimeIn [11]: datetime.combine(datetime.now(),time(23, 59, 59))Out[11]: datetime.datetime(2012, 12, 20, 23, 59, 59)原创 2012-12-20 15:16:19 · 630 阅读 · 0 评论 -
values_list
This is similar to values() except that instead of returning dictionaries, it returns tuples when iterated over.In [1]: from blog.models import *In [2]: Blog.objects.values_list('name')Out[2]:原创 2012-12-20 15:20:14 · 548 阅读 · 0 评论 -
如何自学python
如何自学python比如遇到operator.and_,不知什么意思;打开python shellIn [9]: import operatorIn [10]: help(operator.and_)Help on built-in function and_ in module operator:and_(...) and_(a, b) -- Same as原创 2012-12-20 15:27:25 · 440 阅读 · 0 评论
分享