Django 过滤器 过滤器 描述 示例 upper 以大写方式输出 {{ user.name | upper }} add 给value加上一个数值 {{ user.age | add:”5” }} addslashes 单引号加上转义号 capfirst 第一个字母大写 {{ ‘good’| c ...
分类:
其他好文 时间:
2018-10-26 22:12:10
阅读次数:
239
I have to admit that i was inspired by a dude on the blog. thanks for him first. the topic is that where the meaning of being a master. as what he is ...
分类:
其他好文 时间:
2018-10-25 15:38:22
阅读次数:
140
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate ...
分类:
其他好文 时间:
2018-10-25 00:17:13
阅读次数:
187
python格式化字符串的方式 方法一(%)# 格式的字符串与被格式化的字符串必须一一对应,需格式化的字符串多时,容易搞混print('hello %s, you sex is %s.' %('tab', 'boy'))# hello tab, you sex is boy.print('hello ...
分类:
编程语言 时间:
2018-10-23 18:21:26
阅读次数:
153
//这是最常见的函数 function sayGood(){ console.log('good!') } sayGood(); //我们也可以传参 function sayGood(say){ console.log(say); } sayGood('你好!'); //当然我们也可以传多个参数! ... ...
分类:
编程语言 时间:
2018-10-23 14:25:37
阅读次数:
116
Feel Good Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 18449 Accepted: 5125 Case Time Limit: 1000MS Special Judge Description Bill is de ...
分类:
其他好文 时间:
2018-10-19 21:52:59
阅读次数:
148
题意 给你公式seed(x+1) = [seed(x) + STEP] % MOD ,输入step和mod, 问你是否可以从第一项0,算到mod,它们是否都不同 是 good choice 否则 bad choice 分析 枚举过去 code include include include incl ...
分类:
其他好文 时间:
2018-10-19 02:00:43
阅读次数:
156
15,16 customs 海关 officer 官员 government 政府 + 官员 passport 护照 pass 通过,穿过 port 港口,口岸 pass the port 通过口岸 girl 女孩 boy 男孩 beautiful 美丽的 = pretty we are twins ...
分类:
其他好文 时间:
2018-10-18 18:14:26
阅读次数:
246
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
其他好文 时间:
2018-10-18 10:55:17
阅读次数:
129
http://poj.org/problem?id=3276 Description Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good ...
分类:
其他好文 时间:
2018-10-15 20:39:23
阅读次数:
127