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.9k
麻瓜也能上手的爬說語:開源社 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
55
什麼是社群精神?從 SITCON 到開源社群 / What is Community Spirit? Orientation
rschiang
0
53
有系統最安心?科技手段的正當程序 / “Trust the System?” Due Process Considerations of Algorithmic Decision-Making
rschiang
0
120
Digital Government Landscape in Taiwan: Schnitzels, Whistles, Unicorns
rschiang
0
61
g0v hackath52n proposal: Language Portal
rschiang
0
350
有備無患,先掃再說? / Save for a Rainy Day? Observations and controversies of 1922 SMS registration system
rschiang
0
230
AGPL 與大 SaaS 時代授權的逆襲 / The License Strikes Back!: AGPL and Cloud-Targeting Licenses in the era of SaaS
rschiang
0
330
Plus, and Beyond!: Open source licenses, Creative Commons, & how to use them
rschiang
0
160
簡訊實聯制的開放資料問題 / The Curious Case of 1922 SMS
rschiang
0
140
Other Decks in Technology
See All in Technology
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
生成AI × 旅行 LLMを活用した旅行プラン生成・チャットボット
kominet_ava
0
160
Godot Engineについて調べてみた
unsoluble_sugar
0
410
KMP with Crashlytics
sansantech
PRO
0
240
Amazon Route 53, 待ちに待った TLSAレコードのサポート開始
kenichinakamura
0
170
When Windows Meets Kubernetes…
pichuang
0
310
AWSマルチアカウント統制環境のすゝめ / 20250115 Mitsutoshi Matsuo
shift_evolve
0
120
カップ麺の待ち時間(3分)でわかるPartyRockアップデート
ryutakondo
0
140
コロプラのオンボーディングを採用から語りたい
colopl
5
1.3k
Git scrapingで始める継続的なデータ追跡 / Git Scraping
ohbarye
5
500
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
6
54k
三菱電機で社内コミュニティを立ち上げた話
kurebayashi
1
360
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Unsuck your backbone
ammeep
669
57k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
RailsConf 2023
tenderlove
29
970
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
Producing Creativity
orderedlist
PRO
343
39k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
For a Future-Friendly Web
brad_frost
176
9.5k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
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