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
190
Haskell入門ハンズオン
aruneko
1
1.7k
北海道における学生ITコミュニティの紹介
aruneko
0
230
ゼロからわかるポインター
aruneko
0
990
Dockerでドカドカ on FuraIT #36
aruneko
1
950
Other Decks in Technology
See All in Technology
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
新米スクラムマスターの4ヶ月 -「スクラムイベントを回しているのに手応えがない」からの脱出 / Four Months as a New Scrum Master — When Scrum Events Were Running, but Nothing Felt Right
owata
0
160
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.9k
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
380
Kusakabe_面白いダッシュボードの表現方法
ykka
0
290
GitHub Copilot CLI 現状確認会議
torumakabe
6
750
形式手法特論:コンパイラの「正しさ」は証明できるか? #burikaigi / BuriKaigi 2026
ytaka23
17
6.2k
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
22k
歴史から学ぶ、Goのメモリ管理基礎
logica0419
14
2.8k
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
2
900
WebDriver BiDi 2025年のふりかえり
yotahada3
1
140
Node vs Deno vs Bun 〜推しランタイムを見つけよう〜
kamekyame
1
510
Featured
See All Featured
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
190
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
59
Code Review Best Practice
trishagee
74
19k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
So, you think you're a good person
axbom
PRO
2
1.9k
A Modern Web Designer's Workflow
chriscoyier
698
190k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.1k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
610
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Code Reviewing Like a Champion
maltzj
527
40k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
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