Ch7 make the list of filenames separate lines

未關閉 適合新手
#192 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
88/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
documentation

研究方向

定位第 7 章的課程原始檔(處理檔案的 learners/ 或 episodes/ Markdown 檔案,編號可能為 07-*),並在其中搜尋內聯的 for filename in ['data/…csv', …]: 迴圈。將每個迴圈改寫為:先將清單指派給獨占一行的 filenames 變數,再迭代該變數,同時保持渲染輸出完全相同。完成標準是:Ch7 中每個迭代明確檔案名稱清單的迴圈皆使用此模式,且課程頁面仍能順利建置。

由索引模型根據 Issue 內容生成。

描述

How could the content be improved?

In various parts in Ch7 we use for loops like this
for filename in ['data/2011_circ.csv', 'data/2012_circ.csv']:

It would be better to explicitly get a list of filenames like this
filenames = ['data/2011_circ.csv', 'data/2012_circ.csv']

My reasoning is that we've only just introduced for loops so it just makes it a bit easier to understand that we are looping through a list of filenames, and helping the learners learn exactly what the glob parts do

主要語言
HTML
星號
25
分支
65
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

LibraryCarpentry/lc-python-intro 的其他 Issue

查看 LibraryCarpentry/lc-python-intro 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。