Skip to content

Commit 25678c6

Browse files
committed
2 parents 9ac85c7 + ecced4b commit 25678c6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

chapter04/4-6.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
jishu = [(value*2 - 1) for value in range(1,11)]
2-
print(jishu)
2+
print(jishu)
3+
4+
jishu = [value for value in range(1,20,2)]
5+
print(jishu)

chapter05/5-2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
print("in true")
3535

3636
# 测试特定的值是否未包含在列表中
37-
if 'aaaai' in cars:
37+
if 'aaaai' not in cars:
3838
print("not in true")

0 commit comments

Comments
 (0)