该文被密码保护。 阅读全文
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 阅读(127) 评论(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 阅读(21198) 评论(0) 推荐(0)