char chars[] ={'a','b','c'}; String s = new String(chars); int len = s.length();//字符串长度 System.out.println(chars);//ab System.out.println(s);//abc...
分类:
其他好文 时间:
2014-07-19 16:10:36
阅读次数:
206
重装了系统(ubuntu 14.04)原来正常可用的OpenERP项目在切换到开发者模式的时候报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128)而在服...
分类:
编程语言 时间:
2014-07-19 16:02:16
阅读次数:
242
1.建立升序数组:range();$numarr1 = range(1,4); //(1,2,3,4)$numarr2 = range(1,10,2); //(1,3,5,7,9)$letter = range('a','z'); //('a','b','c'......'z')2.使用循环访问数组...
分类:
Web程序 时间:
2014-07-19 14:36:19
阅读次数:
222
场景先看段代码,考虑以下场景,其运行结果是什么?public class Test { static int i = 8; public void printI() { int i = 88; System.out.println(this.i); } ...
分类:
其他好文 时间:
2014-07-19 14:07:59
阅读次数:
159
1 public static void main(String[] args) { 2 String s = "你好"; 3 String cn = ""; 4 System.out.println("src: " + s); 5 ...
分类:
其他好文 时间:
2014-07-19 12:26:34
阅读次数:
147
OracleDefault DatabasesSYSTEMAvailable in all versionsSYSAUXAvailable in all versionsComment Out QueryThe following can be used to comment out the res...
分类:
数据库 时间:
2014-07-19 09:39:56
阅读次数:
605
There's a couple of Nike Hyperrev For Sale Delay climax frames lead that will list for this calendar month. The actual athletic shoes certainly range ...
分类:
其他好文 时间:
2014-07-19 09:21:43
阅读次数:
323
1.不同调用顺序,不同调用方式的比较 1 class Some { 2 static{ 3 System.out.println("1"); 4 } 5 6 public Some(){ 7 System.out.println("2...
分类:
其他好文 时间:
2014-07-19 09:00:23
阅读次数:
172
1.静态方法是使用公共内存空间的,就是说所有对象都可以直接引用,不需要创建对象再使用该方法。class Cat{ protected static String color ="random"; public void showCatColor(){ System.out....
分类:
其他好文 时间:
2014-07-19 08:33:37
阅读次数:
214
题意:
给你一串编码后的单词和一篇文章 问 编码前文章中出现了几个单词
思路:
根据题意反编码 然后AC自动机跑一下
转化字符时候注意长度 因为可能转换出'\0' 所以转完后再求strlen会出错
注意 ZOJ的char默认是signed char 所以转码后要么存在unsigned char数组里 要么用int数组存 否则会错的!! 因为signed char无法表示128+的数字!!...
分类:
其他好文 时间:
2014-07-19 02:26:26
阅读次数:
236