Skip to content

Commit b32b700

Browse files
committed
add 作業解答
1 parent 0edbac2 commit b32b700

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

D01/homework.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
EquDifference = py.arange(0,21,1)
66
print(EquDifference)
77
print([ x for x in EquDifference if x%2==0])
8-
print([ x for x in EquDifference[1:] if x%3==0])
8+
print([ x for x in EquDifference[1:] if x%3==0])
9+
10+
print(EquDifference[::2] )
11+
print(EquDifference[3::3] )

0 commit comments

Comments
 (0)