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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
TYuto
March 31, 2018
Technology
360
0
Share
Pythonはいいぞ
kosenconf in Takaoでの発表資料です
#kosenconf_118takao
TYuto
March 31, 2018
More Decks by TYuto
See All by TYuto
大学編入について-2022情報工学科学科講演会発表資料
tyuto
0
260
退屈なことはGASにやらせよう
tyuto
0
210
高専生の"立場"を活用しよう
tyuto
0
47
GithubPagesのすすめ
tyuto
0
100
SoundlessTheatre-中間発表資料
tyuto
0
57
Other Decks in Technology
See All in Technology
サプライチェーンセキュリティの空白地帯 - 信頼できる”依存性”の未来を考える
rung
PRO
2
600
最低限これだけ押さえれ大丈夫_Claude Enterprise/Team企業展開ガバナンス入門
tkikuchi
1
600
ChatworkとBPaaS 異なる特性で学んだAI機能開発の ベストプラクティス
kubell_hr
2
580
GitHub Copilot CLIでWebアクセシビリティを改善した話
tomokusaba
0
140
組織の中で自分を経営する技術
shoota
0
230
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
360
Strands Agents超入門
kintotechdev
1
150
oracle-to-databricks-migration-with-llm-and-dbt
casek
1
390
はじめてのDatadog
kairim0
0
250
個人の発見を、組織の知恵に 〜生成AI活用を"探索"から"組織の仕組み"へ〜
kintotechdev
2
440
PHP と TypeScript の型システム比較:AI 時代の「型」は誰のためにあるのか? #frontend_phpcon_do / frontend_phpcon_do_2026
shogogg
1
220
Diagnosing performance problems without the guesswork
elenatanasoiu
0
130
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Fireside Chat
paigeccino
42
3.9k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
390
GitHub's CSS Performance
jonrohan
1033
470k
Abbi's Birthday
coloredviolet
2
7.8k
How to build a perfect <img>
jonoalderson
1
5.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
600
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Transcript
Pythonはいいぞ ”Python”の紹介(布教) YutoTamura
自己紹介 Yuto Tamura Twitter : @yuto_ct HP : TYuto.github.io GitHub
: TYuto SpeakerDeck : TYuto 春からJK(情報系高専生) 情報工学科 去年の高専プロコンの開発にちょっと参加した 最近は競技プログラミングやってる(AtCoder) 主に使ってる言語はPython
python? ニシキヘビ科(ニシキヘビ か、Pythonidae)は、爬虫 綱有鱗目に属する科。ボア 科の亜科とする説もある。 模式属はニシキヘビ属。 (by wikipedia)
Python Python(パイソン)は、汎用のプログラ ミング言語である。コードがシンプルで 扱いやすく設計されており、C言語な どに比べて、さまざまなプログラムを 分かりやすく、少ないコード行数で書 けるといった特徴がある (by wikipedia)
Pythonの特徴 is 何 ・simple -> 読みやすい,書きやすい ・色々な企業で使われてる(Google,DropBox) ・豊富なLibrary(機械学習,数理計算など) ・速度が遅い(?)
Python is simple #include <stdio.h> int main(void) { printf("Hello, world!\n");
return 0; } print("Hello World") Python C言語
Python is simple C言語でFizzBuzz #include <stdio.h> int main(void) { int
i; for (i = 1; i <= 100; i++) { if (i % 3 == 0 && i % 5 == 0) { printf("FizzBuzz\n"); } else if (i % 3 == 0) { printf("Fizz\n"); } else if (i % 5 == 0) { printf("Buzz\n"); } else { printf("%d\n", i); } } return 0; } #include <stdio.h> int main(void) { int i; for (i = 1; i <= 100; i++) { if (i % 3 == 0 && i % 5 == 0) { printf("FizzBuzz\n"); } else if (i % 3 == 0) { printf("Fizz\n"); } else if (i % 5 == 0) { printf("Buzz\n"); } else { printf("%d\n", i); } } return 0;}
Python is simple PythonでFizzBuzz for i in range(1,101): if i%3
== 0 and i%5==0: print("FizzBuzz") elif i%3 == 0: print("Fizz") elif i%5 == 0: print("Buzz") else: print(i) for i in range(1,101): if i%3 == 0 and i%5==0: print("FizzBuzz") elif i%3 == 0: print("Fizz") elif i%5 == 0: print("Buzz") else: print(i)
Python の Library Keras TensorFlow Chainer MXNet PyTorch Theano DeepLearning
Web django Flask Tornado Bottle 計算(?)とか numpy scipy matplotlib
Python の 速度 Pythonは遅い?
Python の 速度 確かに遅い #include<stdio.h> int main(void){ for (int i=0;
i<=10000; i++ ){ for (int i2=0; i2<=10000; i2++){ if (i+i2==100000){ printf("HelloWorld\n"); } } } return 0; for i in range(10000): for i2 in range(10000): if i+i2==1000000: print("hoge") 8.12S 0.28S
Python の 速度 我々にはまだ PyPyが残されている
PyPy is 何 ? PyPy(パイパイ)は、プログラミング言語Pythonの実 装の1つであり、Pythonで記述されたPythonの処理 系であることが特徴の1つである(セルフホスティン グ)。PyPyは、実行速度と効率、およびオリジナルの Python実装であるCPythonとの互換性に重点を置 いている。
(By wikipedia)
0.25S for i in range(10000): for i2 in range(10000): if
i+i2==1000000: print("hoge") Python の 速度 PyPyで実行すると
まとめ ・Pythonはプログラミング言語 ・Pythonは誰が書いても読みやすい,素早く書ける ・ライブラリが豊富なので色々できる ・速度が遅いと言われるけどPyPy使えばだいたい解決 する
まとめ Pythonを使おう