Skip to content
New issue

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

辞書の追加の仕方知らんかった #37

Open
Sota-Watanabe opened this issue Feb 27, 2019 · 1 comment
Open

辞書の追加の仕方知らんかった #37

Sota-Watanabe opened this issue Feb 27, 2019 · 1 comment

Comments

@Sota-Watanabe
Copy link
Member

Code Author: @higurashi-takuto
Knock Number:04

element2num = {_word[:1] if i in scope else _word[:2]: i + 1
for i, _word in enumerate(word)}

この辞書の書き方知りませんでした。すげえ

@higurashi-takuto
Copy link
Member

リスト内包表記みたいに使えるから便利だよ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants