Skip to content

Commit 29c0b0b

Browse files
authored
最后一段代码存在缩进错误
此处代码作用是字符串片段总长度超过maxsize后返回,进行下一次迭代,修改部分的作用是确保将循环剩余的字符串返回,缩进应该与for语句一致。
1 parent 791aa37 commit 29c0b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c02/p14_combine_and_concatenate_strings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
yield ''.join(parts)
150150
parts = []
151151
size = 0
152-
yield ''.join(parts)
152+
yield ''.join(parts)
153153
154154
# 结合文件操作
155155
with open('filename', 'w') as f:

0 commit comments

Comments
 (0)