Day21 文件读写示例代码存在问题
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Find the Day21 documentation and locate the file-reading example containing the two read() calls. Check that the example consistently uses a 512-byte chunk size, then update the second call and review the surrounding text to ensure the example still demonstrates chunked reading.
Written by the indexing model from the issue text.
Description
在 Day21 文档中的以下代码:
data = file1.read(512)
while data:
file2.write(data)
data = file1.read()
这里第二次 read() 没有指定读取大小,
会一次性读取剩余全部数据,
与“分块读取”的教学目标不一致。
建议改为:
data = file1.read(512)
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jackfrued/Python-100-Days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
jackfrued/Python-100-Days#1215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jackfrued/Python-100-Days#1203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
jackfrued/Python-100-Days#1200 · 2 comments ·
-
Day81部分文本表述模糊/有误 Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
jackfrued/Python-100-Days#1192 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jackfrued/Python-100-Days#1186 ·
All issues in jackfrued/Python-100-Days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#167 ·
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·