Skip to content

Commit e2adb7a

Browse files
authored
Merge pull request yidao620c#121 from zxllxz/patch-1
修改错别字:复合-->符合
2 parents 8885bd3 + e63b717 commit e2adb7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c01/p16_filter_sequence_elements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
>>> list(compress(addresses, more5))
114114
['5800 E 58TH', '4801 N BROADWAY', '1039 W GRANVILLE']
115115
>>>
116-
这里的关键点在于先创建一个 ``Boolean`` 序列,指示哪些元素复合条件
116+
这里的关键点在于先创建一个 ``Boolean`` 序列,指示哪些元素符合条件
117117
然后 ``compress()`` 函数根据这个序列去选择输出对应位置为 ``True`` 的元素。
118118

119119
和 ``filter()`` 函数类似, ``compress()`` 也是返回的一个迭代器。因此,如果你需要得到一个列表,

0 commit comments

Comments
 (0)