$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pythonはいいぞ
Search
TYuto
March 31, 2018
Technology
0
340
Pythonはいいぞ
kosenconf in Takaoでの発表資料です
#kosenconf_118takao
TYuto
March 31, 2018
Tweet
Share
More Decks by TYuto
See All by TYuto
大学編入について-2022情報工学科学科講演会発表資料
tyuto
0
240
退屈なことはGASにやらせよう
tyuto
0
200
高専生の"立場"を活用しよう
tyuto
0
40
GithubPagesのすすめ
tyuto
0
97
SoundlessTheatre-中間発表資料
tyuto
0
54
Other Decks in Technology
See All in Technology
【ASW21-02】STAMP/CAST分析における生成AIの支援 ~羽田空港航空機衝突事故を題材として (Support of Generative AI in STAMP/CAST Analysis - A Case Study Based on the Haneda Airport Aircraft Accident -)
hianraku9498
2
460
re:Invent2025とAWS Builder Cards Resilience Expansionのご紹介
tsuwa61
1
120
DGX SparkでローカルLLMをLangChainで動かした話
ruzia
1
170
事業部のプロジェクト進行と開発チームの改善の “時間軸" のすり合わせ
konifar
9
1.9k
TypeScript 6.0で非推奨化されるオプションたち
uhyo
15
5.7k
Dify on AWS の選択肢
ysekiy
0
120
Master Dataグループ紹介資料
sansan33
PRO
1
4k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
レガシーシステム刷新における TypeSpec スキーマ駆動開発のすゝめ
tsukuha
4
890
type-challenges を全問解いたのでエッセンスと推し問題を紹介してみる
kworkdev
PRO
0
150
進化の早すぎる生成 AI と向き合う
satohjohn
0
430
原理から解き明かす AIと人間の成長 - Progate BAR
teba_eleven
2
250
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
680
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Side Projects
sachag
455
43k
Raft: Consensus for Rubyists
vanstee
140
7.2k
Into the Great Unknown - MozCon
thekraken
40
2.2k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Faster Mobile Websites
deanohume
310
31k
Documentation Writing (for coders)
carmenintech
76
5.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Become a Pro
speakerdeck
PRO
30
5.7k
The Cult of Friendly URLs
andyhume
79
6.7k
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を使おう