查询选修了全部课程的学生姓名: 第一种: 理解为:查询一个人的姓名,这个人不存在课程没选择。 思路: 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
转自:http://blog.csdn.net/zhangerqing 有删改 设计模式(Design Patterns) ——可复用面向对象软件的基础 设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更 ...
分类:
其他好文 时间:
2019-11-20 12:41:58
阅读次数:
64
python FAQ 参考: https://docs.python.org/zh cn/3.7/faq/design.html why are python strings immutable 1. why python str is immutable? 一个是性能:知道字符串是不可变的,意味着 ...
分类:
编程语言 时间:
2019-11-19 16:54:48
阅读次数:
81
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