字符串是shell编程中最常用最有用的数据类型(除了数字和字符串,也没啥其它类型好用了),字符串可以用单引号,也可以用双引号,也可以不用引号。单双引号的区别跟PHP类似。单引号str='this is a string'单引号字符串的限制:单引号里的任何字符都会原样输出,单引号字符串中的变量是无效的...
分类:
系统相关 时间:
2014-12-30 20:32:11
阅读次数:
174
JDBC归纳: DriverManger:驱动管理器类 要操作数据库,必须先与数据库创建连接,得到连接对象 public static Connection getConnection(String url, String username,String password){...
分类:
数据库 时间:
2014-12-30 20:28:46
阅读次数:
162
#include?<iostream>
#include?<fstream>
#include?<vector>
#include?<cstdio>
#include?<string>
#include?<cstring>
#include?<cstdlib>
#include?<algorithm>
using?namespace?std;
#ifdef?DEB...
分类:
其他好文 时间:
2014-12-30 19:22:18
阅读次数:
203
1. string类型的参数,get方法
///
/// 执行服务的方法
///
/// 方法名称
/// 参数列表
/// 返回值类型
///
public object ExeJsonMethod(string MethodName, List pars, Type _typ...
分类:
Web程序 时间:
2014-12-30 19:08:30
阅读次数:
157
package com.x.xyz;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Star !");
System.out.println(trailingZeroes(0));
System.out.println(trailingZeroes(1)...
分类:
其他好文 时间:
2014-12-30 19:06:46
阅读次数:
151
流程:
1.当用户请求某个action执行某个功能时(如addInfo),如果此Action实现了ModelDriven这个接口,则ModelDriven的拦截器首先会拦截当前操作的请求,通过此Action的getModel方法,将ModelDriven中的实体类PersonInfo压入到ValueStack的栈顶。
2.然后Parameters拦截器将拦截到的请求参数,根据表单字段映射到Valu...
分类:
其他好文 时间:
2014-12-30 19:06:15
阅读次数:
122
package com.x.xyz;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Star !");
System.out.println(trailingZeroes(10));
System.out.println(trailingZeroes(1...
分类:
其他好文 时间:
2014-12-30 19:05:36
阅读次数:
180
1)echo显示字符串 //这个功能还真像c里面的printf 语句 普通字符串可以在echo后直接输入字符串,但这样当要输出某些字符如\时会有问题(这种写法的时候\是被当作继行符处理过滤掉的,要输出一个\必须打\\,跟c语言printf输出的要求相象),所以一般最好用'string' 或"str....
分类:
系统相关 时间:
2014-12-30 18:59:17
阅读次数:
206
1、redis介绍redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hashs(哈希类型)。这些数据类型都支持push/pop、add...
// 有连接的列 if (!String.IsNullOrWhiteSpace(filedModel.C_SqlDetail)) { HyperLinkF...
分类:
其他好文 时间:
2014-12-30 18:44:49
阅读次数:
180