Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Introduction of # comments in E2

未关闭
#485 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
documentation

调研方向

打开链接 URL 中的 Episode 2 课程,找到“Introduction to Python built-in data types”部分以及后面的脚本讨论。检查现有的 # comment 解释出现的位置,然后将相关的介绍性解释移到第一个示例中,同时保留后面的脚本讨论;当注释在首次出现时就得到解释,即表示完成。

由索引模型根据 Issue 内容生成。

描述

good first issue

I recently taught a demo of Episode 2: Short Introduction to Programming in Python
https://datacarpentry.org/python-ecology-lesson/01-short-introduction-to-Python/index.html

Under Introduction to Python built-in data types, comments are introduced but not yet explained:

Python
text = "Data Carpentry"  # An example of a string
number = 42  # An example of an integer
pi_value = 3.1415  # An example of a float

I found myself explaining the # comments here, though they are explained a little further down in this section:

Python:
# A Python script file
# Comments in Python start with #
# The next line assigns the string "Data Carpentry" to the variable "text".
text = "Data Carpentry"

# The next line does nothing!
text

# The next line uses the print function to print out the value we assigned to "text"
print(text)

I was wondering if it may make sense to pull out some of the explanation and move to where comments are first introduced? Perhaps even just # Comments in Python start with # and leave the rest, as it makes sense with the script discussion?

Thanks!

主要语言
Jupyter Notebook
星标
176
派生
316
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

datacarpentry/python-ecology-lesson 的其他 Issue

查看 datacarpentry/python-ecology-lesson 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。