摘要: package scalaimport java.io.{PrintStream, PrintWriter}import java.util.Dateimport scala.util.logging.{ConsoleLogger, Logged}/** * Created by EX-CHENZE 阅读全文
posted @ 2018-04-03 17:24 chenzechao 阅读(198) 评论(0) 推荐(0)
摘要: import java.io.File import java.nio.file._ import scala.collection.mutable.ArrayBuffer/** * Created by EX-CHENZECHAO001 on 2018-04-02. */class Chapter 阅读全文
posted @ 2018-04-02 18:03 chenzechao 阅读(145) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-03-30 16:57 chenzechao 阅读(134) 评论(0) 推荐(0)
摘要: /** * Created by EX-CHENZECHAO001 on 2018-03-30. */class Chapter06 {}// 6 对象// 用对象作为单例或存放工具的方法// 类可以拥有一个同名的伴生对象// 对象可以扩展类或物质// 对象的apply方法通常用来构造伴生类的新实例 阅读全文
posted @ 2018-03-30 16:49 chenzechao 阅读(149) 评论(0) 推荐(0)
摘要: // 5.7 主构造器// 主构造器的参数直接旋转在类名之后class Person57(val name: String, val age: Int) { // 上边()中的内容就是主构造器的参数}class Person57_01(val name: String) { var age = 0 阅读全文
posted @ 2018-03-30 16:48 chenzechao 阅读(128) 评论(0) 推荐(0)
摘要: 1 -- 查看系统用户 2 select Host,User,Password from mysql.user; 3 4 -- 创建一个远程用户 5 create user test identified by '123456'; 6 7 -- 分配权限 8 grant all privileges 阅读全文
posted @ 2018-03-30 09:09 chenzechao 阅读(21207) 评论(0) 推荐(0)
摘要: import scala.collection.mutable.ArrayBuffer/** * Created by EX-CHENZECHAO001 on 2018-03-29. */class Chapter03 {}object Chapter03 { // 3.5 常用算法 val arr 阅读全文
posted @ 2018-03-29 18:05 chenzechao 阅读(200) 评论(0) 推荐(0)
摘要: /** * Created by EX-CHENZECHAO001 on 2018-03-29. */class Chapter05 {}// 类// 类中的字段自动带有getter方法和setter方法// 5.1 简单类和无参方法class Counter { private var value 阅读全文
posted @ 2018-03-29 18:04 chenzechao 阅读(128) 评论(0) 推荐(0)
摘要: // 2.1 条件表达式val x = 2val s = if (x > 0) 1 else -1if (x > 0) "positive" else -1// 返回值类型不一致,无法确定返回值的类型,所以返回Any类型// 2.2 语句终止var n = 2var r = 0if (n > 0) 阅读全文
posted @ 2018-03-28 18:08 chenzechao 阅读(204) 评论(0) 推荐(0)
摘要: ### 7K+个表测试 ### shell处理,效率低,执行时间: 7m32.664s ### perl处理,效率超高,执行时间: 0m0.298s 阅读全文
posted @ 2018-03-28 08:46 chenzechao 阅读(5743) 评论(0) 推荐(0)