stu( stu( id,name,age,addr,note id,name,age,addr,note ) ) 在 stu表的age后面新增字段; alter add命令用来增加表的字段。 alter add命令格式:alter table 表名 add字段 类型 其他; 例如,在表MyClas ...
分类:
其他好文 时间:
2019-10-10 12:54:59
阅读次数:
87
说白了就是存放数据的空间;(本质:内存中存放数据的空间); 使用步骤:1.声明变量; 2.赋值; eg:1. var age;//声明一个名为age的变量; 2.赋值:把值存到age变量中; age=10;//赋值为10; 3.输出结果; console.log(age);//打印出10; ...
分类:
Web程序 时间:
2019-10-10 00:20:15
阅读次数:
97
let app = new Vue({ el:'#app', data:{ info:'message', num:100, result:true, arr:[1,2,3,4,5], dic:{ name:'kevin', age:18 } } }) </script> <script> cons ...
分类:
其他好文 时间:
2019-10-09 19:32:41
阅读次数:
111
# 一、数字 # int(..) # 二、字符串 # replace find join strip startswith split upper lower format # tempalte = "i am {name}, age : {age}" # # v = tempalte.format... ...
分类:
编程语言 时间:
2019-10-09 12:35:38
阅读次数:
100
? 条件判断计算机之所以能做很多自动化的任务,因为它可以自己做条件判断。比如,输入用户年龄,根据年龄打印不同的内容,在Python程序中,用if语句实现:age = 20if age >= 18: print('your age is', age) print('adult')根据Python的缩进... ...
分类:
其他好文 时间:
2019-10-09 10:49:53
阅读次数:
95
1)创建一个样例类 scala> case class People(name:String,age:Long)defined class People 2)创建DataSet scala> val caseClassDS = Seq(People("Andy",32)).toDS()caseCla ...
分类:
其他好文 时间:
2019-10-09 00:19:05
阅读次数:
254
数据查询 select * from 表名 //*号查看表中所有数据 select 字段 from 表名 //查看指定的字段 排序 使用order by 字句查询,比如对学生年龄进行排序,年龄用(age)表示: select age from 表名 order by age asc //asc表示升 ...
分类:
数据库 时间:
2019-10-08 21:42:00
阅读次数:
94
keys = {"林青霞":{"age":20,"电话":18833333333,"职位":"老板","工资":250}, "张曼玉":{"age":25,"电话":18111111111,"职位":"经理","工资":251}, "高圆圆":{"age":21,"电话":19999999999,& ...
分类:
其他好文 时间:
2019-10-08 15:58:34
阅读次数:
79
计算机之所以能够做很多自动化的任务,因为它可以自己做条件判 例: age = 20 if age >= 18: print('your age is', age) print'adult') 语法: if 条件 例: age=3 if age >= 18: print ('Your age is', ...
分类:
编程语言 时间:
2019-10-08 14:11:38
阅读次数:
101
#字符串操作 a=' abcdefg '.title() print(a) print(a.lower()) print(a.upper()) print(a.lstrip()) print(a.rstrip()) print(a.strip()) #数 age='18' b="I am "+ st... ...
分类:
编程语言 时间:
2019-10-07 22:59:07
阅读次数:
83