Skip to content

Commit 8938985

Browse files
committed
Update ahead_one_step.py
问题定义是赋值 1~10. 故修改成range(1, 11)
1 parent 6a5c646 commit 8938985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ahead_one_step.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
def ahead_one():
13-
a = [i for i in range(10)]
13+
a = [i for i in range(1, 11)]
1414
b = a.pop(0)
1515
a.append(b)
1616
return a

0 commit comments

Comments
 (0)