Commit fe71d278 authored by jackfrued's avatar jackfrued

修复了部分文档和代码中的bug

parent 43c147da
...@@ -8,6 +8,5 @@ Date: 2018-03-01 ...@@ -8,6 +8,5 @@ Date: 2018-03-01
sum = 0 sum = 0
for x in range(1, 101): for x in range(1, 101):
if x % 2 == 0:
sum += x sum += x
print(sum) print(sum)
...@@ -555,6 +555,7 @@ ...@@ -555,6 +555,7 @@
```Python ```Python
from functools import wraps from functools import wraps
from threading import Lock
def singleton(cls): def singleton(cls):
......
...@@ -216,7 +216,7 @@ select stuname as 姓名, year(now())-year(stubirth) as 年龄 from tb_student w ...@@ -216,7 +216,7 @@ select stuname as 姓名, year(now())-year(stubirth) as 年龄 from tb_student w
); );
-- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算) -- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算)
select stuname from tb_student where stuid=( select stuname from tb_student where stuid in (
select stuid from tb_score group by stuid having count(stuid)>2 select stuid from tb_score group by stuid having count(stuid)>2
) )
......
This diff is collapsed.
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
); );
-- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算) -- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算)
select stuname from tb_student where stuid=( select stuname from tb_student where stuid in (
select stuid from tb_score group by stuid having count(stuid)>2 select stuid from tb_score group by stuid having count(stuid)>2
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment