Skip to content

dropwhile() 示例代码错误 #325

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
Aug 2, 2020
Merged

Conversation

distanters
Copy link
Contributor

第一次示例 LIne 44,应该是:
... for line in dropwhile(lambda line: line.startswith('#'), f):
而不是:
... for line in dropwhile(lambda line: not line.startswith('#'), f):
因为这里的目的是不显示 # 开头的文本

第一次示例 LIne 44,应该是:
    ...     for line in dropwhile(lambda line: line.startswith('#'), f):
而不是:
    ...     for line in dropwhile(lambda line: not line.startswith('#'), f):
因为这里的目的是不显示 # 开头的文本
@yidao620c yidao620c merged commit 0371388 into yidao620c:master Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants