Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Introduction of # comments in E2

Đang mở
#485 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Mở bài học Episode 2 tại URL được liên kết và tìm phần “Introduction to Python built-in data types” cùng phần thảo luận về script ở phía sau. Xem lại vị trí xuất hiện của phần giải thích hiện có về # comment, sau đó chuyển phần giải thích nhập môn liên quan vào ví dụ đầu tiên, đồng thời giữ nguyên phần thảo luận về script ở phía sau; hoàn tất khi các comment được giải thích ngay lần đầu xuất hiện.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
Jupyter Notebook
Star
176
Fork
316
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của datacarpentry/python-ecology-lesson

Tất cả issue của datacarpentry/python-ecology-lesson

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.