摘要: QA PgPool II 同步 Postgresql X1 服务器准备 192.168.59.121 PostgreSQL10 192.168.59.120 PGPool II 3.7 X2 安装PostgreSQL M1 下载 $ https://yum.postgresql.org/ $ yum 阅读全文
posted @ 2019-04-19 16:53 匹夫鹏 阅读(2069) 评论(0) 推荐(0) 编辑
摘要: java框架系列-引发的设计模式学习 阅读全文
posted @ 2017-11-28 18:53 匹夫鹏 阅读(216) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-07-07 14:49 匹夫鹏 阅读(3) 评论(0) 推荐(0) 编辑
摘要: //元组 class Demo2 extends TestCase { def test_create_^^(){ val yuana = (1,true,1.2,"c","phone") val v1 = yuana._1 val v2 = yuana _2 ; val y1 = test_return_yuanzu() ... 阅读全文
posted @ 2017-05-01 18:17 匹夫鹏 阅读(229) 评论(0) 推荐(0) 编辑
摘要: //映射(1)-构建,获取,更新,迭代,反转,映射(可变与不可变 互换) class Demo1 extends TestCase { //构建与获取 def test_create_^^(){ //构建-不可变Map(映射),值不能改变 val mapa = Map("001"->10,"002"->20,"CINDY"->30) ... 阅读全文
posted @ 2017-05-01 18:16 匹夫鹏 阅读(210) 评论(0) 推荐(0) 编辑
摘要: import junit.framework.TestCase import scala.collection.mutable.ArrayBuffer; //数组(1) //知识点-定义数组,变长数组,遍历数组,数组转换 class Demo1 extends TestCase { //定义数组 def test_^^() { //定义数组语法1 val 变量名 = new ... 阅读全文
posted @ 2017-04-28 18:27 匹夫鹏 阅读(227) 评论(0) 推荐(0) 编辑
摘要: import junit.framework.TestCase //函数(2) //知识点-默认参数,带名参数,变长参数,过程 class Demo1 extends TestCase { //测试方法 def test_^(){ println_**(); } // println(sum(10)); println(sum(... 阅读全文
posted @ 2017-04-28 17:30 匹夫鹏 阅读(126) 评论(0) 推荐(0) 编辑
摘要: import junit.framework.TestCase //函数(1) class Demo5 extends TestCase { def testDemo(){ println("开始测试Scala函数"); method_0(); var t1 = 10; } //函数-无参数列表-无返回... 阅读全文
posted @ 2017-04-28 16:45 匹夫鹏 阅读(160) 评论(0) 推荐(0) 编辑
摘要: import junit.framework.TestCase import scala.util.control.Breaks._ //流程控制语句 //关键字 if else match class Demo4 extends TestCase { //规则1 if else 有返回值,取最后的值 //规则2 默认返回的值,当值没有设置时,用()代替 //规则3 java中的... 阅读全文
posted @ 2017-04-28 16:44 匹夫鹏 阅读(188) 评论(0) 推荐(0) 编辑
摘要: import junit.framework.TestCase /** * 运算符 */ class Demo3 extends TestCase { def test_+ { var x = 10; var y = 101; //规则1 在算术运算符这边有些加减乘除取模的 运算符通过方法 获取值了,因为在scala中函数名称允许用特殊字符 ... 阅读全文
posted @ 2017-04-28 16:42 匹夫鹏 阅读(1011) 评论(0) 推荐(0) 编辑