We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Author: @kumbikumbiSIC Knock Number: 04 まだ書きかけだとは思うけど、次の表記について似ている表現が色々思いついたので、参考にしてみてください。
100knock/kumbikumbiSIC/04.py
Lines 4 to 5 in 3c16110
# 方法1: 配列はイテレータブルなのでforで要素を直接取り出せます。 word = [] for w in msg2: word.append(w.replace(",", "").replace(".", "")) # 方法2: インデックスをつけたい場合はenumerate()が使えます。 for i, w in enumerate(msg2): msg2[i] = w.replace(",", "").replace(".", "") # 方法3: また、配列の全要素に同じ処理をするにはmap()が使えます。(戻り値がmapなのでlistにする必要があります) msg2 = list(map(lambda word: word.replace(",", "").replace(".", ""), msg2))
The text was updated successfully, but these errors were encountered:
まずイテレータブルを理解してなかったですね
Sorry, something went wrong.
ごめん、イテラブル(iterable)だった。
イテラブルでも分かってなかったですね!
No branches or pull requests
Code Author: @kumbikumbiSIC
Knock Number: 04
まだ書きかけだとは思うけど、次の表記について似ている表現が色々思いついたので、参考にしてみてください。
100knock/kumbikumbiSIC/04.py
Lines 4 to 5 in 3c16110
The text was updated successfully, but these errors were encountered: