Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
Bittersweet: Promoting Digital Democracy with Civic Tech in East Asia
rschiang
0
28
什麼是社群精神?從 SITCON 到開源社群 / What is Community Spirit? Orientation
rschiang
0
37
有系統最安心?科技手段的正當程序 / “Trust the System?” Due Process Considerations of Algorithmic Decision-Making
rschiang
0
100
Digital Government Landscape in Taiwan: Schnitzels, Whistles, Unicorns
rschiang
0
46
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
150
簡訊實聯制的開放資料問題 / The Curious Case of 1922 SMS
rschiang
0
130
Other Decks in Technology
See All in Technology
メインテーマはKubernetes
nwiizo
2
300
ONNX推論クレートの比較と実装奮闘記
emergent
0
250
LLMアプリケーションの評価と継続的改善
pharma_x_tech
2
170
徹底解説!Microsoft 365 Copilot の拡張機能 / Complete guide to Microsoft 365 Copilot extensions
karamem0
1
1.4k
RDRAとLLM
kanzaki
4
480
Amazon Forecast亡き今、我々がマネージドサービスに頼らず時系列予測を実行する方法
sadynitro
0
220
クルマのサブスクを Next.jsで内製化した経験とその1年後
kintotechdev
2
400
レガシーシステムへのDatadog APM導入奮闘記
mtakeya4062
0
130
実践/先取り「入門 Kubernetes Validating/Mutating Admission Policy」 / CloudNative Days Winter 2024
pfn
PRO
1
130
12/2(月)のBedrockアプデ速報(re:Invent 2024 Daily re:Cap #1 with AWS Heroes)
minorun365
PRO
1
100
乗っ取れKubernetes!!~リスクから学ぶKubernetesセキュリティの考え方~/k8s-risk-and-security
mochizuki875
3
400
Microsoft Ignite 2024 Update 1 - AIとIoT関連の最新情報をどこよりも早く!
iotcomjpadmin
0
170
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
334
57k
Writing Fast Ruby
sferik
627
61k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Gamification - CAS2011
davidbonilla
80
5k
Typedesign – Prime Four
hannesfritz
40
2.4k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
A Modern Web Designer's Workflow
chriscoyier
693
190k
For a Future-Friendly Web
brad_frost
175
9.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
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