Using elif instead of if and nested else-if

オープン
#1,910 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

issue で参照されている Caesar 復号スクリプトを見つけ、ネストされた if/else-if 条件を調べます。適切な箇所では、ネストされた条件のスタイルを Python elif に置き換え、その後スクリプトまたは利用可能な例を実行して、復号の動作に変更がないことを確認します。

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

説明

Hello,

I'm nowhere near to be good neither at Github nor at Python. But in your Ceaser decipher script, I saw that you used nested if-else if blocks instead of using the more suitable if-elif conditions. I thought that would be better both for you and for the readability of the code. Whatever you choose to do so, I wish you a good day.

主要言語
Python
スター
35.4k
フォーク
12.9k
平均マージ
2時間 37分
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

geekcomputers/Python のほかの issue

geekcomputers/Python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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