Skip to content

Commit f53ef07

Browse files
authored
Update p14_join_str.py
修正不正确的缩进,保持与原版的代码逻辑一致。原版代码见https://github.com/dabeaz/python-cookbook/blob/master/src/2/combining_and_concatenating_strings/example.py
1 parent 616973e commit f53ef07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/c02/p14_join_str.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def combine(source, maxsize):
1616
yield ''.join(parts)
1717
parts = []
1818
size = 0
19-
yield ' '.join(parts)
19+
yield ''.join(parts)
2020

2121

2222
def sample():

0 commit comments

Comments
 (0)