查询选修了全部课程的学生姓名: 第一种: 理解为:查询一个人的姓名,这个人不存在课程没选择。 思路: 1.拿出Student表的第一行数据 2.拿出Course表的第一行数据 3.拿出SC表的第一行数据 (其实这个表就是用来与前两个表进行对比判断的) for(循环从Student表拿一行学生数据){ ...
分类:
其他好文 时间:
2019-11-22 00:30:51
阅读次数:
131
eg01: res_course = self.env['xksystem.studentcourseline'].search(['&', ('student_id', '=', res.id),('coursecode', '=', self.id)]) 说明:依据条件 ('student_id ...
分类:
其他好文 时间:
2019-11-21 12:28:48
阅读次数:
325
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
分类:
其他好文 时间:
2019-11-21 11:58:07
阅读次数:
69
create database xuexiao; use xuexiao; create table sc (sno varchar(20), cno varchar(20), grade int); create table course (cno varchar(20), cname varch ...
分类:
数据库 时间:
2019-11-20 23:34:00
阅读次数:
145
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
分类:
其他好文 时间:
2019-11-19 13:47:00
阅读次数:
65
函数外部的代码要想获取函数的执行结果,就可以在函数里用return语句把结果返回 1 def stu_register(name, age, course='PY' ,country='CN'): 2 print(" 注册学生信息 ") 3 print("姓名:", name) 4 print("a ...
分类:
其他好文 时间:
2019-11-19 00:51:40
阅读次数:
76
当被调用的库变量 和 函数加上 static关键字,那么调用这个库的脚本就不需要创建一个类的对象,可以直接用类名+函数名or 变量名 调用库的函数 or 变量https://ke.qq.com/webcourse/index.html#cid=434021&term_id=100518216&tai ...
分类:
其他好文 时间:
2019-11-18 00:04:36
阅读次数:
73
序言 IdentityServer4能做什么 Identity Server 4(以下简称ID4)是一个基于oauth2和OpenID的身份认证组件,基于这个组件可以快速开发自己的身份认证网站,支持单点登录,快速完成工业级的身份认证系统。ID4也是dotnetcore推荐的身份认证组件。 Ident ...
分类:
其他好文 时间:
2019-11-17 12:31:14
阅读次数:
57
/*student(学号#,姓名,性别,年龄) course(课程号#,课程名,教师号#) score(学号#,课程号#,成绩) teacher(教师号#,教师名)*/ --1.查询“001”课程比“002”课程成绩高的所有学生的学号 select a.stuNo from score a,scor ...
分类:
数据库 时间:
2019-11-13 16:06:14
阅读次数:
123
保存到文件: 其他方法: 代码来源:https://stackoverflow.com/questions/37281430/how-to-convert-pcm-file-to-wav-or-mp3 ...
分类:
其他好文 时间:
2019-11-12 11:07:01
阅读次数:
114