Ch7 standardise loop variables

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

還沒有人認領這個 Issue。

評估

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

研究方向

在本課程儲存庫中定位第 7 章的課程原始檔('Looping over datasets' 這一節),並在其中搜尋 for filename in [...] 與 for csv in ... 之類的迴圈敘述。將迴圈變數統一為單一名稱(回報者偏好 filename),涵蓋該節中所有範例與內文,包括引用該變數的任何輸出區塊。當對整章進行全儲存庫搜尋時只出現一個一致的變數名稱,且轉譯後的課程仍能正確閱讀,即視為完成。

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

描述

How could the content be improved?

Near the start of Ch7 we get
for filename in ['data/2011_circ.csv', 'data/2012_circ.csv']:

Then lower down it is always
for csv in blablabla:

It should be consistently one or the other throughout (I probably prefer filename)

Which part of the content does your suggestion apply to?

Ch7 Looping over datasets

主要語言
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

更多 Content Issue

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

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