'''设计类类名:见名之意,首字母大写,其他遵循驼峰原则属性:见名之意,其他遵循驼峰原则行为(方法/功能):见名之意,其他遵循驼峰原则类名:Wife属性:sex age height weight faceValue行为:做饭 洗衣服 拖地 揉肩 捶腿类名:Husband属性:sex age hei ...
分类:
编程语言 时间:
2020-02-09 22:05:25
阅读次数:
111
class Person(object): name = "" age = 0 height = 0 weight = 0 def run(self): print("run") def eat(self, food): print("eat" + food) def openDoor(self): ...
分类:
编程语言 时间:
2020-02-09 22:04:54
阅读次数:
92
Spark SQL基本操作 (1) 查询所有数据; (2) 查询所有数据,并去除重复的数据; (3) 查询所有数据,打印时去除id字段; (4) 筛选出age>30的记录; (5) 将数据按age分组; (6) 将数据按name升序排列; (7) 取出前3行数据; (8) 查询所有记录的name列, ...
分类:
数据库 时间:
2020-02-09 20:39:48
阅读次数:
165
package com.itranswarp.learnjava; /** * Is primary student? */ public class PrimaryStudent { public static void main(String[] args) { int age = 7; // ...
分类:
编程语言 时间:
2020-02-08 17:30:43
阅读次数:
129
>>> def multi_sum(*args): s = 0 for item in args: s += item return s >>> multi_sum(3,4,5) 12 >>> multi_sum(3,4) 7 def do_something(name, age, gender=' ...
分类:
编程语言 时间:
2020-02-08 13:47:43
阅读次数:
85
// 去除首尾空白字符 ['email', 'trim'] 或 ['email', 'filter', 'filter' => 'trim'] // 验证字段必填 ['email', 'required', 'message' => 'email不能为空'] // 赋予默认值 ['age', 'de ...
分类:
其他好文 时间:
2020-02-08 12:10:12
阅读次数:
94
我会谈谈对于索引结构我自己的看法,以及分享如何从零开始一层一层向上最终理解索引结构。 从一个简单的表开始 create table user( id int primary key, age int, height int, weight int, name varchar(32))engine = ...
分类:
数据库 时间:
2020-02-08 12:06:00
阅读次数:
113
1.项目目录 2.Javabean(省略常见方法) public class Person { private int id; private String name; private int age; private String phone; 3.新建Spring的配置文件:applicatio ...
分类:
编程语言 时间:
2020-02-07 20:44:05
阅读次数:
62
2.编程实现将 RDD 转换为 DataFrame 源文件内容如下(包含 id,name,age): 1,Ella,36 2,Bob,29 3,Jack,29 请将数据复制保存到 Linux 系统中,命名为 employee.txt,实现从 RDD 转换得到 DataFrame,并按“id:1,na ...
分类:
其他好文 时间:
2020-02-07 17:07:23
阅读次数:
87
function course(name,age){ console.log(age); //undefined 此时age并无实参,所以为undefined console.log(arguments[1]); //undefined arguments指示的age,因为下标是以0开始的 argu ...
分类:
Web程序 时间:
2020-02-07 14:34:54
阅读次数:
88