Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ゆるいPython会
Search
Aruneko
November 09, 2017
Technology
0
270
ゆるいPython会
2017/11/09に学内で開催したゆる(くな)いPython会の資料です
Aruneko
November 09, 2017
Tweet
Share
More Decks by Aruneko
See All by Aruneko
RedmineをDockerに載せてみた
aruneko
1
2.4k
NFCとしゃべってみよう
aruneko
0
180
Haskell入門ハンズオン
aruneko
1
1.6k
北海道における学生ITコミュニティの紹介
aruneko
0
220
ゼロからわかるポインター
aruneko
0
980
Dockerでドカドカ on FuraIT #36
aruneko
1
900
Other Decks in Technology
See All in Technology
これがLambdaレス時代のChatOpsだ!実例で学ぶAmazon Q Developerカスタムアクション活用法
iwamot
PRO
8
1.1k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3k
『バイトル』CTOが語る! AIネイティブ世代と切り拓くモノづくり組織
dip_tech
PRO
1
130
RDS の負荷が高い場合に AWS で取りうる具体策 N 連発/a-series-of-specific-countermeasures-available-on-aws-when-rds-is-under-high-load
emiki
4
3.5k
Digitization部 紹介資料
sansan33
PRO
1
5.6k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
8.8k
ニッポンの人に知ってもらいたいGISスポット
sakaik
0
150
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
14k
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
310
能登半島災害現場エンジニアクロストーク 【JAWS FESTA 2025 in 金沢】
ditccsugii
0
870
GoでもGUIアプリを作りたい!
kworkdev
PRO
0
150
防災デジタル分野での官民共創の取り組み (2)DIT/CCとD-CERTについて
ditccsugii
0
300
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
75
5.1k
Why Our Code Smells
bkeepers
PRO
340
57k
GitHub's CSS Performance
jonrohan
1032
470k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
190
55k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
BBQ
matthewcrist
89
9.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Context Engineering - Making Every Token Count
addyosmani
7
260
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Code Reviewing Like a Champion
maltzj
526
40k
Writing Fast Ruby
sferik
629
62k
Transcript
ΏΔ͘ͳ͍1ZUIPOձ *UFSBCMF(FOFSBUPS-BNCEB !BSVOFLP
ࠓͷ༰ w *UFSBCMF(FOFSBUPS w -BNCEBࣜ
αϯϓϧίʔυ w IUUQTHJUBSVOFLPOFUBSVOFLPSPVHI@QZUIPO
*UFSBCMF w *UFSBCMFͬͯʁ w ܁Γฦ͠ॲཧ͕Ͱ͖Δͷ w MJTUUVQMFEJDUFUD w 1ZUIPOʹ͓͍ͯɺ*UFSBUPSͱҧ͏Α w
*UFSBUPSJUFS Λͬͯ*UFSBCMFͳͷ͔Βੜͯ͠ ΛOFYU ͰݸͣͭऔΓग़ͭ͢ w શ෦ు͖ग़ͨ͠ޙʹOFYU ΛݺͿͱྫ֎Ͱམͪ·͢
(FOFSBUPS w (FOFSBUPSͬͯʁ w *UFSBUPSͷҰछ w Λੜ͢ΔϧʔϧΛ͍࣋ͬͯͯɺݺΕΔʹॱ൪ʹు͖ग़ͭ͢ w ࠷ޙ·Ͱు͖ग़ͨ͠ޙʹ͏ҰճݺΜͰམͪ͠ͳ͍͚ͲԿు͔ͳ͍Α w
ཁ͢ΔʹԆධՁ w MJTUͳͲσʔλ͕શ෦ϝϞϦʹͬͯ͠·͏ͷͰɺ ͕ଟ͍ͱ͖(FOFSBUPSͷํ͕লϝϞϦ w ͍͔ͨͩ͠Ͳ͏͔ผ
(FOFSBUPSΛ࡞ͬͯΈΔ def gen_odd_numbers(min: int, max: int) -> [int]: for n
in range(min, max): yield 2 * n + 1 nums = gen_odd_numbers(0, 100) for n in nums: print(n)
࿅श w 'J[[#V[[Λు͖ग़͢δΣωϨʔλΛ࡞ͬͯΈΑ͏ʂ w 'J[[#V[[ͱɺҎ্ͷྻʹରͯ͠ w ͷഒ'J[[ w ͷഒ#V[[ w
ͷഒ'J[[#V[[ w ͦΕҎ֎ࣗͷ w Λग़ྗ͢ΔͰ͢
-BNCEBࣜ w ͍͍ͪͪؔΛ࡞Δ·Ͱͳ͍ͱ͖ʹ͏ؔϦςϥϧ w ϦςϥϧͬͯͷมʹೖͰ͖ΔͷࣄͶ w ؔΛҾʹऔΔؔʹ͏ͱΑ͛͞ w ͜͏͍͏ؔΛߴ֊ؔ )JHIFS0SEFS'VODUJPO
ͬͯݺͿΑ
1ZUIPOͷߴ֊ؔ w *UFSBCMFͳΦϒδΣΫτΛҰׅͰૢ࡞͢Δؔ w NBQ GVOD JUFS w pMUFS
GVOD JUFS w GVODUPPMTSFEVDF GVOD JUFS w ҙॱͰͷιʔτ w TPSUFE JUFS LFZLFZ@GVODUJPO w άϧʔϓ͚ w JUFSUPPMTHSPVQCZ JUFS LFZLFZ@GVODUJPO w ͍ͭ͜ΒͷฦΓશ෦(FOFSBUPSͳͷͰऔѻҙ w Ҿͷॱ൪ʹҰ؏ੑ͕ͳ͍ͷಥͬࠐΜͰ͍͚ͳ͍
ͬͯΈΑ͏ import urllib.request iris_url = 'https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv' with urllib.request.urlopen(iris_url) as res:
splitted_response = res.read().split() decoded = map(lambda l: l.decode('UTF-8'), splitted_response) iris_csv = list(map(lambda l: l.split(','), decoded)) header = iris_csv[0] iris_data = iris_csv[1:] iris = map(lambda i: { header[4]: i[4], header[0]: float(i[0]), header[1]: float(i[1]), header[2]: float(i[2]), header[3]: float(i[3]) }, iris_data ) for l in sorted(iris, key=lambda i: i['sepal_width']): print(l)
࿅श w JSJTQZΛվ͠Α͏ w ଞͷͰιʔτͯ͠ΈΑ͏ w SFEVDFΛͬͯͭͷ TFQBMͱQFUBMͷXJEUIͱMFOHUI ͷ ฏۉΛͦΕͧΕٻΊͯΈΑ͏
TVNറΓ w ࠓՖͷछྨ͝ͱʹಉ͡ࣄΛͬͯΈΑ͏ HSPVQCZ