想要在后台编辑模型,首先要把模型注册到admin 1、默认注册 2、打开admin后台,可查看 注册成功,可以再add中增加数据 3、自定义注册 A、fields 可以查看添加数据的时候,只显示配置中的title、desc、content B、exclude 可以查看添加数据的时候,不显示index ...
分类:
其他好文 时间:
2018-08-05 11:50:49
阅读次数:
142
[抄题]: Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts". The length o ...
分类:
其他好文 时间:
2018-08-05 10:28:51
阅读次数:
194
Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass, the ...
分类:
其他好文 时间:
2018-08-03 19:55:31
阅读次数:
172
Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 19518 Accepted: 10243 Description Farmer John has purchased a lush new rectangu ...
分类:
其他好文 时间:
2018-08-02 23:12:55
阅读次数:
325
一. 循环. while循环 while 条件:代码块(循环体)执行流程: 1.让计算机连续打印5次corn,每次延迟一秒: 二.格式化输出%s: 字符串的占位符, 可以放置任何内容(数字)%d: 数字的占位符 三. 运算符逻辑运算:and 并且的意思. 左右两端的值必须都是真. 运算结果才是真or ...
分类:
编程语言 时间:
2018-08-02 20:57:23
阅读次数:
186
4、数据导入1、作用 :把文件系统的内容导入到数据库中2、语法 load data infile "/var/lib/mysql-files/文件名" into table 表名 fields terminated by "分隔符" lines terminated by "\n";3、将score ...
分类:
其他好文 时间:
2018-08-02 20:36:24
阅读次数:
163
最终版本 五个方法封装 位置参数 看源码 视图四个方法: 视图 (1) (常用) class AuthorSerializers(serializers.ModelSerializer): class Meta: model=Author fields="__all__" class AuthorV ...
分类:
其他好文 时间:
2018-08-02 17:00:01
阅读次数:
174
1、pandas解决“pandas.parser.CParserError: Error tokenizing data. C error: Expected 2 fields in line 3, s” 2、中文编码问题 【所谓unicode】 unicode是一种类似于符号集的抽象编码,它只规定 ...
分类:
其他好文 时间:
2018-08-02 14:54:10
阅读次数:
142
如题,logstash之filter处理中括号包围的内容: 摘出来数组中的所有fields 感谢时总的大力支持!!! 核心就是正则! match => { "message" => "^\[%{GREEDYDATA:request}\]$" } ...
分类:
其他好文 时间:
2018-08-02 12:19:52
阅读次数:
825
首先什么都不填是一种,初值f[0][0]设为1 然后有三种不合法的情况: 1.不肥沃 2.行冲突 3.列冲突 前两种可以预处理,最后计算时枚举上一行的状态,判断 运算符的优先级要注意 不断熟悉状压DP ...
分类:
其他好文 时间:
2018-08-02 11:18:01
阅读次数:
211