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
Poren Chiang
October 03, 2014
Technology
6
1.8k
麻瓜也能上手的爬說語:開源社 Python 入門
2014/10/3 Talk @ NTU Open Source Community, NTUCC, Taipei, Taiwan.
Licensed under CC BY-SA 4.0.
Poren Chiang
October 03, 2014
Tweet
Share
More Decks by Poren Chiang
See All by Poren Chiang
什麼是社群精神?從 SITCON 到開源社群 / What is Community Spirit? Orientation
rschiang
0
34
有系統最安心?科技手段的正當程序 / “Trust the System?” Due Process Considerations of Algorithmic Decision-Making
rschiang
0
100
Digital Government Landscape in Taiwan: Schnitzels, Whistles, Unicorns
rschiang
0
45
g0v hackath52n proposal: Language Portal
rschiang
0
340
有備無患,先掃再說? / Save for a Rainy Day? Observations and controversies of 1922 SMS registration system
rschiang
0
220
AGPL 與大 SaaS 時代授權的逆襲 / The License Strikes Back!: AGPL and Cloud-Targeting Licenses in the era of SaaS
rschiang
0
300
Plus, and Beyond!: Open source licenses, Creative Commons, & how to use them
rschiang
0
140
簡訊實聯制的開放資料問題 / The Curious Case of 1922 SMS
rschiang
0
130
重構黑箱社會 / Restructuring a Black Box Society
rschiang
0
540
Other Decks in Technology
See All in Technology
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.6k
透過型SMTPプロキシによる送信メールの可観測性向上: Update Edition / Improved observability of outgoing emails with transparent smtp proxy: Update edition
linyows
2
210
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
370
AGIについてChatGPTに聞いてみた
blueb
0
130
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
470
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
860
フルカイテン株式会社 採用資料
fullkaiten
0
40k
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
180
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Building Adaptive Systems
keathley
38
2.3k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Designing for Performance
lara
604
68k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
It's Worth the Effort
3n
183
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Transcript
란 檘 ⛳ 腋 ♳ 䩛 涸 昮铞铃 շ〵㣐彂爢1ZUIPOⰅո (C)
RSChiang @ NTUOSC / CC BY-SA 4.0
㨥⛓ ˖ 瘘鎹㘗ꨶ舡鎙⚥呲堥 ˖ 1ZUIPO • ጐ⼎ḑ⋣ⶤ⼗⌀㡠ping 8.8.8.8㡡
玑䒭 ˖ Ⱖ㻜㽠僽雊ꨶ舡㛂遤䭸⟂涸䠑䙼 ˖ 䩧⦐嫲倰ĈĈ
欰崞⚥涸玑䒭 ˖ 㕮䕎⢪欽罏歲 ˖ չ殥ⴀ殥瘞䖊䭸⟂պ涸鶬㕖
ず㷸⟃捀䧮僽 㹻酭⟃捀䧮僽 䧮⟃捀䧮僽 㻜ꥹ♳䧮僽 1IPUPDSFEJU#SJBO,MVH UPQMFGU $$#:/$ "EBN5IPNBT UPQSJHIU $$#:
8BSOFS#SPT1JDUVSFT CPUUPNMFGU QPXUBD CPUUPNSJHIU $$#:/$/%
Ⱖ㻜尝剤齡랃㔮ꨈ
1ZUIPO ˖ 䎃ⴀ植涸玑䒭铃鎊 ˖ չ㢵ꅾⰩ眕պNVMUJQBSBEJHN ̔搂锸㋐姹➊랃괐呔鿪腋♳䩛 ٥Ī٥ ˖ ぐ䎂〵♳鿪腋⢪欽罜⚂♶銴管陼
䪪ⵌ1ZUIPO 0494QPUMJHIU̔穅畮堥 -JOVY$USM "MU 5鋕涮遤晝罜㹁 8JOEPXT䖰QZUIPOPSH♴鯺*%-&
䩧⦐䬸ㄎゅ
QSJOU ㍜⚆歲 デ鏰1ZUIPO䧮⦛銴⨞➊랃 鸏酭僽⽫ⴀ匌銯⢵ 䭍䓞剚䪾䨾剤銴ⴀ⢵涸须鎝⺫⡞ 㽠⫹㖈㻨俒畎♧垺 ꧱䒸贫デ鏰1ZUIPO鸏僽♧媯俒㶶 ㋲䒸贫⛳〳⟃欽
䬄⦐✥侸
JNQPSUSBOEPN 锞㢫涸玑䒭 㸤䧭♧❉䧮⦛♶剚涸⸆腋 䧮⦛銴䪪涸㢫鿈玑䒭僽չSBOEPNպ
SBOEPNSBOEJOU չ涸պ SBOEPNJOUFHFS涸簮㻨 鸏⦐ⴅ䒭剚欴欰➝倴窍㹁眕㕠Ⰹ涸侮侸 ⶍⶍⰅ涸չrandomպ 䖰ⵌ
贖椚须俲
SFTUBVSBOUT<崞㣐荈⸔귭 ˘> 騈侸㷸♳涸չ湱瘞պ♶♧垺 鸏酭僽չ䭸崣պ涸䠑䙼 倰䭍䓞デ鏰1ZUIPO鸏僽♧⦐ꤏ 㹁纏♧⦐そ㶶 鸏酭僽չ귭䑼⦛պ 酭〳⟃㶸佞 ♶姺♧媯俒㶶
玖⡲⥜佖
SFTUBVSBOUTBQQFOE 뛩뒊㼭♬ ! SFTUBVSBOUT <㼭犷 〵猰㣐> 植㖈restaurants酭僽⦐ꤏ涸չ暟⟝պ 䧮⦛〳⟃銴ꤏ꣡⸈♧媯俒㶶ⵌ剓㽵畮 殹搭⛳〳⟃♧妄꣡⸈㥪㢵媯a
= a + b ! a += b
SFTUBVSBOUT<> ! MFO SFTUBVSBOUT ⛳〳⟃欽程䒸管贫《⧩䖰㨥侸 《䖤ꤏ涸Ꟁ䏞
⢵䬄佅硹ゅ
Ⱖ㻜剤럊㣐勞㼭欽✫ ⢵⹛럊1ZUIPO涸溫呔
GSPNVSMMJCSFRVFTUJNQPSUVSMPQFO 㥶卓僽1ZUIPO銴Ⰵ涸僽VSMMJC
VSMPQFO IUUQHPPHMFDPN SFBE 䩧笪㖧63- 鿈隡ⴀ⢵
植㖈⡹剚鸮笪畀✫9%
չ䧮銴䙦랃濼麥 剤ㆭ❉⸆腋〳⟃欽պ
垸穉 NPEVMFT ˖ Ⰹ䒊涸垸穉〳⟃䖰1ZUIPO 㸽倰笪畀叆鑉ⵌ • ˤ٨̨╹ม PyPI ୷⪑ơ 㡠[sudo]
pip install …㡡 • ˤ٨̨╹Хơ 㡠ʫϪ⳻ቛ৫ዅʫϪᗃᐲ㡤 ӰவዅʫϪᕻ⊓㡡
None
ㄤ$ 涸㼩嫲
#include <iostream> using namespace std; ! int main(int argc, char*
argv) { cout << “Hi NTUOSC!”; return 0; } print(“Hi NTUOSC!”) $ 1ZUIPO Ⱖ㻜♧遤㽠腋邍麨幢嘽 玑䒭銴⨞➊랃✫ 騈1ZUIPO涸print()䠑䙼僽湱ず涸
string a = “ݙ”; string b = “”; for (int
i = 1; i <= 5; i++) { b += a; } cout << b; print(“ݙ” * 5) $ 1ZUIPO 俒㶶銴隶❀⦔ 湬䱺⛨⟃㽠㥪✫ ♶䗳駵㔐书ꚽ瀖
for (int i = 1; i <= 5; i++) {
cout << “#” << i << “\n”; } for i in range(5): print(“#” + str(i)) $ 1ZUIPO 鎹䖤銴欽瑠呔簮䱖ㆦ
㥪欽涸垸穉⦛ 莊䎙⦐玑䒭⚥䌢欽涸⢿㶩
JNQPSUCBTF CBTFCFODPEF 彂爢FODPEF 剤莇馱涸鑨〳⟃(PPHMF♧♴ 㸐腋䪾⟤⡦须俲鱲䧭〳곏爚涸俒㶶 ⯓管焺䧭✳鹎⡙呔䒭
JNQPSUSF SFNBUDI =E =E 鸏僽姻鋊邍麨䒭♴妄剚➝稲㸐 鸒䌢欽⢵嫲㼩俒㶶呔䒭 ⛳僽ⴕ區笪갤Ⰹ㺂涸㥪䍲䩛
JNQPSUTNUQMJC DMJFOUTNUQMJC4.51@44- NBJMOUVFEVUX port= DMJFOUTFOENBJM
䖎㢵➃鿪♶濼麥 Ⱖ㻜〫銴♲遤玑䒭㽠〳⟃㺕♧㼓FNBJM
♴妄铭玑 ˖ ❀儻♳♬럊 ˖ 鎙⚥來㹔 ˖ 姹鵔♳〵ⴕ❧'SFF5BML ˖ 铭玑稇勞剚䓹顦㖈荩㣐彂爢纈穉莅)BDLQBE
2VFTUJPOT 鎹䖤㞅Ⰵ爢邍㋲㋅PXP