Ch5 first import is confusing

オープン 初心者向け
#191 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

lc-python-introレッスンリポジトリ内の第5章インポートセクションのコンテンツファイルを探します。説明行を更新し、library_name.functionをlibrary_name.objectに置き換え、最初のコード例を、関数呼び出し(string.capwords)とインポートした文字列オブジェクトの使用(string.ascii_lowercase)の両方を示す提案されたスニペットに置き換えます。ビルドしたレッスンをプレビューして、変更が意図したとおりに表示されることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

How could the content be improved?

At the start of Ch5 "You must import a library or module before using it"

Use import to load a library into a program’s memory. Then you can refer to things from the library as library_name.function

Then the first thing you load in is string.ascii_lowercase which is not a function, it is a string!

Suggestion on how to resolve it:
Edit the text above so it is more general: "Then you can refer to things from the library as library_name.object"

Then have the code box be something like:

import string

# Using an imported function
print(string.capwords('capitalise this sentence please.'))
# Imported objects can also be strings, numbers, or other types of objects
print(f'The lower ascii letters are {string.ascii_lowercase}')
Which part of the content does your suggestion apply to?

Ch5 You must import a library or module before using it

主要言語
HTML
スター
25
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LibraryCarpentry/lc-python-intro のほかの issue

LibraryCarpentry/lc-python-intro の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。