源代码: 使用Junit进行测试,一个测试用例计算一次佣金,不需要循环读取用户输入的数据,所以将源代码中main函数中while循环里的 continue改成break,以便编写测试用例。 程序图: DD路径图: DD路径: 19 A 68 B 72 C 73 D 75 E 78 F 82 G 28 ...
分类:
其他好文 时间:
2017-04-13 16:37:05
阅读次数:
229
转自 http://www.cnblogs.com/BeginMan/p/3197123.html 一、and: 在Python 中,and 和 or 执行布尔逻辑演算,如你所期待的一样,但是它们并不返回布尔值;而是,返回它们实际进行比较的值之一。 在布尔上下文中从左到右演算表达式的值,如果布尔上下 ...
分类:
编程语言 时间:
2017-04-04 22:01:33
阅读次数:
218
今天,对正则表达式的使用,做一个简单的整理。 1. String中str.matchs(regax); 2. String中str.replaceAll(regax,replace); 3. Pattern (1) 正则表达式本身 (2) 对正则进行预编译处理 (3) 提高处理效率 4. Match ...
分类:
其他好文 时间:
2017-04-04 17:08:33
阅读次数:
152
About Network Interfaces About Network Interfaces Each physical and virtual network device on an Oracle Linux system has an associated configuration f ...
分类:
数据库 时间:
2017-04-01 14:53:35
阅读次数:
297
if ([title hasPrefix:@" "]) { title = [title stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];//去掉前后空格 }else if([title hasPref ...
分类:
其他好文 时间:
2017-03-31 15:59:04
阅读次数:
155
① 从字符串“耿丹计算机Java20170320”中提取日期 public class Xx1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Str ...
分类:
编程语言 时间:
2017-03-31 12:50:50
阅读次数:
185
public class Homework01 { public static void main(String[] args) { String str="耿丹学院计算机Java20170320"; System.out.println(str.substring(11)); } } public... ...
分类:
编程语言 时间:
2017-03-29 21:16:33
阅读次数:
143