之前整理了一部分grep、sed和awk的文章,当然只是很基础的东西,平时我遇到的问题会把它们整理到一起,然后对比分析,这样印象会更深刻。[root@localhost~]#catfile1234567891011先把列转成行,写了5方法:1.xargs实现[root@localhost~]#catfile|xargs12345678910112.tr实现,需..
分类:
其他好文 时间:
2015-08-19 21:07:41
阅读次数:
339
结论:任何执行try 或者catch中的return语句之前,都会先执行finally语句,如果finally存在的话。
如果finally中有return语句,那么程序就return了,所以finally中的return是一定会被return的,
编译器把finally中的return实现为一个warning。
但是需要注意的是,经过测试表明:在tr...
分类:
其他好文 时间:
2015-08-19 20:44:12
阅读次数:
126
public string chang(string money) { //将小写金额转换成大写金额 double MyNumber = Convert.ToDouble(money); Stri...
分类:
其他好文 时间:
2015-08-19 10:58:11
阅读次数:
151
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta?content="...
分类:
Web程序 时间:
2015-08-18 19:50:42
阅读次数:
117
DescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. Now he has a tr...
分类:
编程语言 时间:
2015-08-18 18:59:35
阅读次数:
137
#include#includeusing namespace std;#define MAXN 50005int ans;struct node{ int left,right,sum; int mid(){ return (left+right)>>1; }}tr...
分类:
其他好文 时间:
2015-08-18 13:34:53
阅读次数:
271
题意:A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。
思路:先求矩阵的 k 次幂,再把对角线元素相加模 m。用快速幂,并且中间就模m,以免溢出。...
分类:
其他好文 时间:
2015-08-18 06:38:08
阅读次数:
147
今天还是学到了不少东西的,那破问题还没解决,请求一样,为什么会是两种结果。 今天用了下属性反射。 getFields和getDeclaredFields区别是,前者只能获取公共属性,后者会获取各种权限的属性。 还有Filed.set()给私有属性赋值,要设置asscessable为tr...
分类:
其他好文 时间:
2015-08-18 00:57:28
阅读次数:
134
qqqq 1 2 3 qqq 4 5 6 1 7 1 8 1 9 10 11 212 213 214 15 16 17 ...
分类:
其他好文 时间:
2015-08-17 11:41:31
阅读次数:
154
1、引入JS文件和所需要的样式文件2、简单的写上以下18行代码就可以实现了$(document).ready(function() { $("div.tip_trigger a.img").hover(function() { $(this).parent('div.tip_tr...
分类:
Web程序 时间:
2015-08-16 18:12:58
阅读次数:
153