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
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.2k
ecspresso, ecschedule, lambroll を PipeCDプラグインとして動かしてみた (プロトタイプ) / Running ecspresso, ecschedule, and lambroll as PipeCD Plugins (prototype)
tkikuc
2
1.7k
Androidアプリの One Experience リリース
nein37
0
1.1k
為你自己學 Python
eddie
0
510
情報漏洩させないための設計
kubotak
5
1.3k
HTML/CSS超絶浅い説明
yuki0329
0
190
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
390
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
250
ErdMap: Thinking about a map for Rails applications
makicamel
1
530
Оптимизируем производительность блока Казначейство
lamodatech
0
940
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
170
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
400
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Speed Design
sergeychernyshev
25
730
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
Building an army of robots
kneath
302
45k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.5k
Practical Orchestrator
shlominoach
186
10k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
GitHub's CSS Performance
jonrohan
1030
460k
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 ʢΪʔΫϥϘɹ௨শ:ΪʔϥϘʣ ΤϯδχΞͷू·ΔϑϦʔεϖʔε ษڧձΠϕϯτɺηϛφʔΛ։࠵ ӡӦɿ (ג)ຊγεςϜٕݚʗ৴ֶձʗΩϟελϦΞ(ג)