Skip to content

Update p02_unpack_elements_from_iterables.rst #178

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
Jul 27, 2017
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/c01/p02_unpack_elements_from_iterables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Python 的星号表达式可以用来解决这个问题。比如,你在学习
扩展的迭代解压语法是专门为解压不确定个数或任意个数元素的可迭代对象而设计的。
通常,这些可迭代对象的元素结构有确定的规则(比如第 1 个元素后面都是电话号码),
星号表达式让开发人员可以很容易的利用这些规则来解压出元素来。
而不是通过一些比较复杂的手段去获取这些关联的的元素值
而不是通过一些比较复杂的手段去获取这些关联的元素值

值得注意的是,星号表达式在迭代元素为可变长元组的序列时是很有用的。
比如,下面是一个带有标签的元组序列:
Expand Down