Skip to content

Update p13_create_data_processing_pipelines.rst #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/c04/p13_create_data_processing_pipelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

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