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
Bittersweet: Promoting Digital Democracy with Civic Tech in East Asia
rschiang
0
40
什麼是社群精神?從 SITCON 到開源社群 / What is Community Spirit? Orientation
rschiang
0
46
有系統最安心?科技手段的正當程序 / “Trust the System?” Due Process Considerations of Algorithmic Decision-Making
rschiang
0
110
Digital Government Landscape in Taiwan: Schnitzels, Whistles, Unicorns
rschiang
0
53
g0v hackath52n proposal: Language Portal
rschiang
0
350
有備無患,先掃再說? / 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
310
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
Qiita埋め込み用スライド
naoki_0531
0
860
podman_update_2024-12
orimanabu
1
260
10個のフィルタをAXI4-Streamでつなげてみた
marsee101
0
160
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
300
20241220_S3 tablesの使い方を検証してみた
handy
3
340
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
160
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
祝!Iceberg祭開幕!re:Invent 2024データレイク関連アップデート10分総ざらい
kniino
2
250
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
Storage Browser for Amazon S3
miu_crescent
1
140
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
390
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
157
23k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Docker and Python
trallard
42
3.1k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Being A Developer After 40
akosma
87
590k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
Mobile First: as difficult as doing things right
swwweet
222
9k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Building Adaptive Systems
keathley
38
2.3k
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