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
1
590
明日使えるちょっとニッチな組み込み関数
17.10.27(Fri) 大阪Pythonの会#7でのLT
sin-tanaka
October 30, 2017
Tweet
Share
More Decks by sin-tanaka
See All by sin-tanaka
Pythonでライブをしよう!FoxDotを使った新時代のPython活用法 / pyconjp-2019
sin_tanaka_21
1
3.3k
AppSync入門できなかったのでGraphQLに入門した
sin_tanaka_21
0
130
Pythonで始めるウェブスクレイピング実践入門 / pyconjp-2018
sin_tanaka_21
13
7.7k
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
0
230
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
630
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
103 Early Hints
sugi_0000
1
220
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
Refactor your code - refactor yourself
xosofox
1
260
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
Zoneless Testing
rainerhahnekamp
0
120
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
260
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.6k
Go の GC の不得意な部分を克服したい
taiyow
2
760
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
328
21k
How GitHub (no longer) Works
holman
311
140k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Making the Leap to Tech Lead
cromwellryan
133
9k
Scaling GitHub
holman
458
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
A better future with KSS
kneath
238
17k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
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 ʢΪʔΫϥϘɹ௨শ:ΪʔϥϘʣ ΤϯδχΞͷू·ΔϑϦʔεϖʔε ษڧձΠϕϯτɺηϛφʔΛ։࠵ ӡӦɿ (ג)ຊγεςϜٕݚʗ৴ֶձʗΩϟελϦΞ(ג)