一、一对多的表查询classProject(models.Model):
name=models.CharField(u‘项目名称‘,max_length=32,blank=True)
id=models.CharField(u‘项目ID‘,max_length=32,unique=True,primary_key=True,blank=True)
create_date=models.DateTimeField(u‘创建时间‘,auto_now_add=True)
up..
分类:
其他好文 时间:
2017-03-14 14:02:10
阅读次数:
238
C. Dima and Salad Dima, Inna and Seryozha have gathered in a room. That's right, someone's got to go. To cheer Seryozha up and inspire him to have a w ...
分类:
其他好文 时间:
2017-03-13 19:05:43
阅读次数:
196
Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space ...
分类:
其他好文 时间:
2017-03-12 18:28:04
阅读次数:
154
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=4612 解题思路: 题的大意是有N个种植园,有M条水渠相连。这就是一个强连通的无向图,他不想要这个图中存在有桥,如果添加一条边,剩余的桥的最小数量。 本题的答案先用Tarjan进行缩点。在这个过程就可以计算 ...
分类:
其他好文 时间:
2017-03-12 18:16:54
阅读次数:
257
Install yum-utils, which provides the yum-config-manager utility: $ sudo yum install -y yum-utils Use the following command to set up the stable repos ...
分类:
其他好文 时间:
2017-03-12 16:30:10
阅读次数:
506
Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 此题并不难,声明2个指针一个步长1,一个步长 ...
分类:
其他好文 时间:
2017-03-12 13:15:36
阅读次数:
122
题目描述 Farmer John has grown so lazy that he no longer wants to continue maintaining the cow paths that currently provide a way to visit each of his N ( ...
分类:
其他好文 时间:
2017-03-12 10:52:39
阅读次数:
266
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2017-03-10 17:50:11
阅读次数:
194
When setting up a clean install of airflow on ubuntu 14.04, I ran into the following error: vagrant@vagrant-ubuntu-trusty-64:~$ airflow [2016-07-19 15 ...
分类:
其他好文 时间:
2017-03-10 17:42:13
阅读次数:
1653
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10128 Accepted: 3094 Special Judge Description Up to thirty couples will attend a wedding f ...
分类:
其他好文 时间:
2017-03-10 12:41:12
阅读次数:
225