创建数据库 命令: python manage.py makemigrations python manage.py migrate python manage.py runserver 127.0.0.1:8000 ###启动django 创建后台超级用户 python manage.py cre ...
分类:
其他好文 时间:
2017-07-03 12:26:58
阅读次数:
247
Problem Description There are n men ,every man has an ID(1..n).their ID is unique. Whose ID is i and i-1 are friends, Whose ID is i and i+1 are friend ...
分类:
其他好文 时间:
2017-07-02 20:23:14
阅读次数:
305
1 # 面向对象 2 # 3 # 特性 4 # class 类 :对一类拥有相同属性的对象的抽象,蓝图,原型 定义对象的共同方法 5 # object 对象:类的实例化后的实体 一个类可以实例化多个对象 每个对象亦有不同的属性 6 # 7 # 封装: 内部调用对外部是透明的 里面包含类的数据和方法 ... ...
分类:
编程语言 时间:
2017-06-30 15:41:04
阅读次数:
158
Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N standing along a st ...
分类:
其他好文 时间:
2017-06-30 13:50:13
阅读次数:
204
There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct ...
分类:
其他好文 时间:
2017-06-26 21:04:30
阅读次数:
297
Description Bessie and her friends are playing hoofball in the annual Superbull championship, and Farmer John is in charge of making the tournament as ...
分类:
其他好文 时间:
2017-06-25 20:21:43
阅读次数:
246
题意: 给出n个非严格递增的整数(可能有负数),必须操作k次。每次能够把当中一个数变为它的相反数,使得终于的数列和最大。输出这个最大和。 考验怎样出坑数据卡自己的程序... #include <cstdio> const int maxn = 105; int n, k, num[maxn]; in ...
分类:
其他好文 时间:
2017-06-22 12:08:35
阅读次数:
104
Christy is interning at HackerRank. One day she has to distribute some chocolates to her colleagues. She is biased towards her friends and may have di ...
分类:
其他好文 时间:
2017-06-21 18:27:37
阅读次数:
234
My first web page What this is A simple page put together using HTML. I said a simple page put together using HTML. A simple page put together using H ...
分类:
Web程序 时间:
2017-06-18 15:50:53
阅读次数:
219
6.2 创建对象 6.2.1 工厂模式 工厂模式是软件工程领域一种广为人知的设计模式,这种模式抽象了创建具体对象的过程。考虑到在ECMAScript 中无法创建类,开发人员就发明了一种函数,用函数来封装以特定接口创建对象的细节。 工厂模式虽然解决了创建多个相似对象的问题,但却没有解决对象识别的问题( ...
分类:
其他好文 时间:
2017-06-16 19:31:04
阅读次数:
221