FreeMarker的插值有如下两种类型:1,通用插值${expr};2,数字格式化插值:#{expr}或#{expr;format} ${book.name?if_exists } //用于判断如果存在,就输出这个值 ${book.name?default(‘xxx’)}//默认值xxx ${bo ...
分类:
其他好文 时间:
2018-08-22 18:23:25
阅读次数:
137
"原题:858. Mirror Reflection" There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptor ...
分类:
其他好文 时间:
2018-08-21 21:47:18
阅读次数:
168
Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 43713 Accepted: 23706 Description There is a rectangular room, covered with s ...
分类:
其他好文 时间:
2018-08-21 16:04:03
阅读次数:
134
题目链接:https://leetcode.com/problems/escape-the-ghosts/description/ You are playing a simplified Pacman game. You start at the point (0, 0), and your de ...
分类:
其他好文 时间:
2018-08-20 13:17:47
阅读次数:
153
Time limit1000 ms Memory limit30000 kB There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is stan ...
分类:
其他好文 时间:
2018-08-19 00:57:56
阅读次数:
178
escape不编码字符有69个:*,+,-,.,/,@,_,0-9,a-z,A-Z encodeURI不编码字符有82个:!,#,$,&,',(,),*,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,A-Z encodeURIComponent不编码字符有71个:!, ',(,), ...
Description Fires can be disastrous, especially when a fire breaks out in a room that is completely filled with people. Rooms usually have a couple of ...
分类:
其他好文 时间:
2018-08-14 19:53:02
阅读次数:
168
# 修改与删除@property封装的数据属性 # 原始通过@property实现的功能:将类中定义的函数属性,通过装饰器@property将其封闭成数据属性,这时是不能删除和修改这个数据属性的 class Room: def __init__(self, name, width, length):... ...
分类:
其他好文 时间:
2018-08-14 00:57:46
阅读次数:
189
# 通过描述符自定制@property的功能 # 原始通过@property实现的功能:将类中定义的函数属性,通过装饰器@property将其封闭成数据属性 class Room: def __init__(self, name, width, length): self.name = name s... ...
分类:
其他好文 时间:
2018-08-14 00:21:39
阅读次数:
205
Problem Link: http://codeforces.com/contest/932/problem/F Problem Statement: F. Escape Through Leaf time limit per test: 3 seconds memory limit per te ...
分类:
其他好文 时间:
2018-08-11 21:59:43
阅读次数:
200