Skip to content

Commit 2a8f35e

Browse files
author
Liu Jie
committed
Update p13_create_data_processing_pipelines.rst
typo 最为->作为
1 parent 3978bdd commit 2a8f35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c04/p13_create_data_processing_pipelines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
在调用 ``gen_concatenate()`` 函数的时候你可能会有些不太明白。
131131
这个函数的目的是将输入序列拼接成一个很长的行序列。
132-
``itertools.chain()`` 函数同样有类似的功能,但是它需要将所有可迭代对象最为参数传入
132+
``itertools.chain()`` 函数同样有类似的功能,但是它需要将所有可迭代对象作为参数传入
133133
在上面这个例子中,你可能会写类似这样的语句 ``lines = itertools.chain(*files)`` ,
134134
这将导致 ``gen_opener()`` 生成器被提前全部消费掉。
135135
但由于 ``gen_opener()`` 生成器每次生成一个打开过的文件,

0 commit comments

Comments
 (0)