$myStr="node=slave-01:2.05:1.25:1.00"$time tmp=${myStr%%:*};echo ${tmp##*=}real 0m0.000suser 0m0.000ssys 0m0.000sslave-01${string#*pattern} ...
分类:
系统相关 时间:
2015-05-12 01:24:18
阅读次数:
222
定义需要传递给线程的数据。
class Student
{
public string Name { get; set; }
public int Age { get; set; }
public int Score { get; set; }
}
List studentList = new List() {
new Student(){Na...
分类:
编程语言 时间:
2015-05-12 00:13:44
阅读次数:
129
串的概念什么是串呢?
串(String):由零个或多个字符组成的有限序列。记为:s=’a1a2…an’(n≥0)
s为串名, ’a1a2…an’为串值,n为串的长度。
子串在主串中的位置:以子串的第一个字符在主串中的位置来表示
串相等:当且仅当两个串的串值相等(两个串的长度相等,并且各个对应的字符也都相等
串的数据类型ADT String { D={ ai...
分类:
其他好文 时间:
2015-05-12 00:12:54
阅读次数:
240
题目:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ...
分类:
其他好文 时间:
2015-05-11 23:57:44
阅读次数:
154
Date : getTime() 、setTime()SimpleDateFormate : Formate(Date)、parse(String s)Calendar : getInstance()、set() 、get()、getActualMaximum()、add...
分类:
编程语言 时间:
2015-05-11 23:47:18
阅读次数:
159
有效的括弧匹配注意事项:1 使用stack遇到'(' '[' '{'就push,遇到')' ']' '}'匹配进行pop等操作class Solution {public: bool isValid(string s) { stack mystack; char tmp; for(char c:s....
分类:
其他好文 时间:
2015-05-11 23:43:31
阅读次数:
159
1 public class TestJoin { 2 public static void main(String[] args) { 3 MyThread2 t1 = new MyThread2("abcde"); 4 t1.start(); 5 try { 6 ...
分类:
编程语言 时间:
2015-05-11 23:42:37
阅读次数:
261
快速通道:https://oj.leetcode.com/problems/restore-ip-addresses/Given a string containing only digits, restore it by returning all possible valid IP addres...
分类:
其他好文 时间:
2015-05-11 23:42:13
阅读次数:
219
1.1 应用 String对象截取特定文字利用String 对象的charAt() 和 substring() 方法等,截取特定文字或字段文字显示在页面上 1 2 3 4 字符串对象应用实例 5 27 28 29 53 54 1.2 应用 Image 对象实现动画 1 ...
分类:
编程语言 时间:
2015-05-11 23:38:55
阅读次数:
123
原文网址:http://www.cnblogs.com/mengdd/archive/2013/02/16/2913659.html先看一个程序例子: public class HelloThreadTest{ public static void main(String[] args) ...
分类:
编程语言 时间:
2015-05-11 23:38:12
阅读次数:
159