CRUD 也没什么可说的,django 提供了完善的 orm api, 直接用就行了。我只贴几个列子,一看就明白了,自己再用用就熟了。# createb = Blog(name='Beatles Blog', tagline='All the latest Beatles news.')b.save...
分类:
数据库 时间:
2015-08-12 19:05:13
阅读次数:
110
巧用emacs的org-mode模式浏览:1017|更新:2013-07-25 23:45一键约师傅百度师傅,专治各种手机、电脑问题介绍转个官方文档Org is a mode for keeping notes, maintaining TODO lists, and doingproject pl...
分类:
系统相关 时间:
2015-08-11 18:08:03
阅读次数:
185
package notebook;import java.util.ArrayList;public class NoteBook {
private ArrayList notes =new ArrayList(); //创建容器类的对象notes public void add(String s)
{//添加笔记
notes.add(s);
}...
分类:
编程语言 时间:
2015-08-11 12:17:14
阅读次数:
111
依旧先来题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers...
分类:
其他好文 时间:
2015-08-10 19:54:29
阅读次数:
104
先来题目:'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not parti.....
分类:
其他好文 时间:
2015-08-10 17:40:23
阅读次数:
106
www.raychase.nethttp://mindhacks.cn程序员博客墙blogwall.ushttp://www.cppblog.com/vczhMacTalk-池建强的随想录Fenng DBA Notes | 闲思录robbin的自言自语风雪之隅-Laruence的博客blog.vgo...
分类:
其他好文 时间:
2015-08-10 07:03:56
阅读次数:
152
models 其实也没什么好说的,就是普通的 python 类settings 中配置数据库连接DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', ...
分类:
其他好文 时间:
2015-08-08 22:49:34
阅读次数:
207
第 2 章 线性表2.1 数组 . . . . . . . . . . . . . . . 22.1.1 Remove Duplicatesfrom Sorted Array . . . 22.1.2 Remove Duplicatesfrom Sorted Array II . . 32.1.3 ...
分类:
其他好文 时间:
2015-08-08 17:53:31
阅读次数:
216
一 Lotus的任务Lotus是一个消息通知服务,topic和subscription是多对多的关系。后面我加了一个发送自定义邮件和自定义短信的功能。产品里面有个监控报警和通知列表。监控报警里创建alarm时会让选通知给谁。供选择的就是topic。如果alarm被触发,就会发通知给和该alarm绑定...
分类:
其他好文 时间:
2015-08-08 16:09:43
阅读次数:
183
本文来自:http://www.open-open.com/lib/view/open1427078982824.html#_label3更多信息见官网:http://docs.mongodb.org/manual/release-notes/3.0/参考文章:测试:http://www.mongo...
分类:
数据库 时间:
2015-08-06 13:01:49
阅读次数:
207