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
明日使えるちょっとニッチな組み込み関数
Search
sin-tanaka
October 30, 2017
Programming
640
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
明日使えるちょっとニッチな組み込み関数
17.10.27(Fri) 大阪Pythonの会#7でのLT
sin-tanaka
October 30, 2017
More Decks by sin-tanaka
See All by sin-tanaka
Pythonでライブをしよう!FoxDotを使った新時代のPython活用法 / pyconjp-2019
sin_tanaka_21
1
4k
AppSync入門できなかったのでGraphQLに入門した
sin_tanaka_21
0
170
Pythonで始めるウェブスクレイピング実践入門 / pyconjp-2018
sin_tanaka_21
13
8.3k
Other Decks in Programming
See All in Programming
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
150
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
210
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
180
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
850
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
460
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.9k
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
290
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
370
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
530
AIが無かった頃の素敵な出会いの話
codmoninc
1
390
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
460
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
430
Statistics for Hackers
jakevdp
799
230k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
410
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Navigating Team Friction
lara
192
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Discover your Explorer Soul
emna__ayadi
2
1.2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
370
Technical Leadership for Architectural Decision Making
baasie
3
470
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Transcript
໌͑Δͪΐͬͱχονͳ ΈࠐΈؔ ɹɹɹ ాதɹ৻ଠ ʢגʣຊγεςϜٕݚ
͡Ίʹɾɾɾ ໊લ: ాத ৻ଠ झຯ: Ϊλʔʗ͓ञ ϥδΦʗԻ੍ָ࡞ ग़: ݝ Pythonྺ:
1ͱ radipy - https://github.com/sin-tanaka/radipy
͢͜ͱ ɾPythonͷѪணΛਂΊ͍ͨ ɾϚϝࣝͬͯΔͱѪண༙͘ΑͶ ໌͑ΔPythonτϦϏΞ ʙΈࠐΈؔฤʙ
͢͜ͱ
͢͜ͱ 1. ҙ֎ͱΒΕͯͳͦ͞͏ͳؔ 2. ସखஈͷ͋Δؔ 3. ຊʹΒͳͯ͘ࠔΒͳ͍ؔ 4. ऴΘΔ࣌ͷؔ
͢͜ͱ 1. ҙ֎ͱΒΕͯͳͦ͞͏ͳؔ 2. ସखஈͷ͋Δؔ 3. ຊʹΒͳͯ͘ࠔΒͳ͍ؔ 4. ऴΘΔ࣌ͷؔ
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • all() / any()
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • min() / max()
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • min() / max()
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • divmod()
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • divmod() ༨Γ͕1.1ʹͳΒͳ͍ɾɾɾ
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • bin() / oct() / int() / hex() 2
/ 8 / 10 / 16ਐͷม int()ͷΈจࣈྻ͔Βͷͷܕม͕Ͱ͖Δ
ҙ֎ͱΒΕͯແͦ͞͏ͳؔ • bin() / oct() / int() / hex() 2
/ 8 / 16ਐͷจࣈྻΛ10ਐʹม͢Δͱ͖ → ୈೋҾʹجఈͷΛೖΕͯ͋͛Δ
͢͜ͱ 1. ҙ֎ͱΒΕͯͳͦ͞͏ͳؔ 2. ସखஈͷ͋Δؔ 3. ຊʹΒͳͯ͘ࠔΒͳ͍ؔ 4. ऴΘΔ࣌ͷؔ
ସखஈͷ͋Δؔ • map() / filter()
ସखஈͷ͋Δؔ • map() / filter()
ସखஈͷ͋Δؔ • map() / filter() ※͜͏͍͏ॻ͖ํͰ͖ͳ͍
͢͜ͱ 1. ҙ֎ͱΒΕͯͳͦ͞͏ͳؔ 2. ସखஈͷ͋Δؔ 3. ຊʹΒͳͯ͘ࠔΒͳ͍ؔ 4. ऴΘΔ࣌ͷؔ
ຊʹΒͳ͍͍ͯؔ͘ • copyright() / license() / credits()
ຊʹΒͳ͍͍ͯؔ͘ • copyright() / license() / credits()
ຊʹΒͳ͍͍ͯؔ͘ • copyright() / license() / credits()
͢͜ͱ 1. ҙ֎ͱΒΕͯͳͦ͞͏ͳؔ 2. ସखஈͷ͋Δؔ 3. ຊʹΒͳͯ͘ࠔΒͳ͍ؔ 4. ऴΘΔ࣌ͷؔ
ऴΘΔ࣌ͷؔ • exit() / quit() ྫ֎ൃੜ͍ͤͯ͞Δ͚ͩͳͷͰ try۟Ͱғ͏ͱऴΘΒͳ͍
·ͩ·ͩ͋Γ·͢ʂʂ ɾbuiltins.pyʹఆٛ͞Ε͍ͯΔ ɾௐͯΈΔͱҙ֎ͱ໘ന͍Ͱ͢
GeekLab.NAGANOͷհ GeekLab.NAGANOɹɹɹ: @glnagano ʢΪʔΫϥϘɹ௨শ:ΪʔϥϘʣ ΤϯδχΞͷू·ΔϑϦʔεϖʔε ษڧձΠϕϯτɺηϛφʔΛ։࠵ ӡӦɿ (ג)ຊγεςϜٕݚʗ৴ֶձʗΩϟελϦΞ(ג)