1.字典实例:建立学生学号成绩字典,做增删改查遍历操作。 dic={} xuehao=['1','2','3','4','5','6','7'] scores=['85','95','65','75','88','99','55'] xs=dict(zip(xuehao,scores)) print ...
分类:
其他好文 时间:
2017-09-26 21:08:54
阅读次数:
203
1、字典实例:建立学生学号成绩字典,做增删改查遍历操作。 dic={}number=['01','02','03','04','05']scores=[85,96,78,91,87]ns=dict(zip(number,scores))print(ns) 2、列表,元组,字典,集合的遍历。总结列表, ...
分类:
其他好文 时间:
2017-09-26 12:56:56
阅读次数:
131
题目: 1.输出男女组各前3名。 2.分组降序输出所有人的成绩。 3.对应的SQL语句。 数据: scores: name,age,gender,score 解答如下: 1. 输出男女组各前3名。 Java代码 SQL 代码 2.分组降序输出所有人的成绩。 Java代码 SQL代码 附:Java代码 ...
分类:
其他好文 时间:
2017-09-22 14:11:27
阅读次数:
196
## test for dictprint(' start test dict ')names = ['Aa', 'Bb', 'Cc']scores = [98, 76, 54]## d相当于做了一个map映射d = {'Aa': 98, 'Bb': 76, 'Cc': 54}print('d is ...
分类:
编程语言 时间:
2017-09-13 18:30:18
阅读次数:
163
扩展例子 插入一条记录 INSERT INTO 表名 [(字段1,…,字段n)] VALUES (值1,…,值n) 插入查询的结果 INSERT INTO 表名 (字段1,…,字段n) VALUES 子查询 例如:INSERT INTO Scores VALUES ("990301", "大学计算机 ...
分类:
数据库 时间:
2017-08-30 21:49:00
阅读次数:
232
db.ClassMembers.insertMany([ { "ClassID":"CL0001", "StudentID":"S000001", "DateFrom":"2015-09-01" }, { "ClassID":"CL0002", "StudentID":"S000002", "Dat ...
分类:
数据库 时间:
2017-08-25 10:54:18
阅读次数:
171
1.什么是数组 2.为数组分配空间 3.循环遍历数组 4.Arrays 5.foreach 1.什么是数组 int[ ] scores={76,83,92,87}; 数组可以理解为是一个巨大的“盒子”,里面可以按顺序存放多个类型相同的数据,比如可以定义 int 型的数组 scores 存储 4 名学 ...
分类:
编程语言 时间:
2017-08-24 18:01:20
阅读次数:
158
D. Memory and Scores time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output Memory and his frie ...
分类:
Web程序 时间:
2017-08-18 18:36:28
阅读次数:
162
Kyle is a student of Programming Monkey Elementary School. Just as others, he is deeply concerned with his grades. Last month, the school held an exam ...
分类:
其他好文 时间:
2017-08-08 19:32:37
阅读次数:
245