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
walile
December 04, 2013
Programming
3
190
Python新手探險記
2013.10 speak @pyladies
introduction about my learning way from other language to python
walile
December 04, 2013
Tweet
Share
More Decks by walile
See All by walile
有效率的開會
walile
0
120
something of data science introduction
walile
0
56
Other Decks in Programming
See All in Programming
Enterprise Web App. Development (2): Version Control Tool Training Ver. 5.1
knakagawa
1
120
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
100
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
270
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
450
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
1
120
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
390
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
480
技術同人誌をMCP Serverにしてみた
74th
1
380
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
500
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
47
31k
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
250
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
510
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
4 Signs Your Business is Dying
shpigford
184
22k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
490
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Fireside Chat
paigeccino
37
3.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
How to Ace a Technical Interview
jacobian
277
23k
Balancing Empowerment & Direction
lara
1
370
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Transcript
PYTHON 新⼿手探險記 by 宅⼩小哇
WHO AM I ? • 來路不明的打雜⼯工程師 • ⼯工作九年都在寫web application。 •
學業半途想不開寫程式 • 不太挑語⾔言(除了M$外) • 我很宅...
我想告訴⼤大家的第⼀一件事 我是被騙來學Python的.....
PLURK當時開始在台灣當紅 認識了⼀一票.....⼯工程師朋友 (謎:明明你⾃自⼰己也是)
後來某⼀一年..... GOOGLE APP ENGINE 很夯.....
所以在PLURK上,就有⼈人騙了我開始碰 PYTHON ⽽而 不是RUBY
做⼀一件事只需要⼀一個⽅方法。 然後我就掉到坑裡去了!
挑了本看的懂 的書。好好的 練完了⼀一半...... 沒想到再開始寫的時候,已 經是⼆二年多後的事了.....
–但時候還沒踩到什麼雷 「當我第⼀一次在公司使⽤用python寫測試ftp上、下 傳的程式的時候,感覺很美好」
⼀一年多後,拿PYTHON來PARSE MAIL LOG資料,還記得當初第 ⼀一次使⽤用時的美好情況... 所以我當然說服⽼老闆捨棄⽤用php, java⽽而⽤用python來分析資料 ! 然後我⼜又近⼀一年沒碰python
⽽而且字少打很多.... (喂
回到正題...
其實⼯工作⽤用到的語⾔言 都是被騙來寫的...(⼤大誤)
再回到正題...
究竟要怎麼學習PYTHON? • 有其他語⾔言的基礎 ex. Java, PHP, C#… • http://www.php2python.com •
利⽤用java概念學習python • 沒有任何語⾔言基礎 - ⼀一直練習<del>踩地雷</ del>
http://docs.python.org/2/reference/index.html http://docs.python.org/3.3/reference/index.html
雖然有其他程式語⾔言的底⼦子
但PYTHON還是有些不⼀一樣的 地⽅方
PYTHON • 利⽤用排版(四個空格),不使⽤用分號結尾 • namespace使⽤用的⽅方式 • function使⽤用⽅方式 • 迴圈⽤用法 •
要學Python2還是要直接學Python 3?
某天,要開發⼀一個產品... ⽼老闆說有個部分需要爬蟲去挖資料回來...
最後我選了PYTHON ! 因為SCRAPY ! SCRAPY真的很完整 (但這不是今天的重點)
可是整個公司是寫PHP!
從來沒完整⽤用PYTHON 寫過整個專案以及產品的⼈人 直接⽼老闆說服⽤用PYTHON 現在想想我當時真的是不要命了....
因為離上次寫PYTHON ! ⼜又隔了約⼀一年的時間... (搞不好語法都快忘的差不多了)
踩地雷 + 死線 = ? • windows 32位元還可以裝python, 64位元為啥會出問題? •
mac os為什麼裝mysql-python裝不起來(mac os 10.8) • 咦?為什麼資料出現錯誤都在上⼀一⾏行? • 為啥有中⽂文就會出錯(抓頭),寫註解也有問題 • 阿就沒有符號,排版也對,為什麼python不給run... • driver 裝好了,結果資料為什麼塞不進資料庫?? • <del>討厭啊,我⼀一直結尾不⼩小⼼心加了分號!!!!!</del>
踩地雷 + 死線 = ? • Python docs不會查... • 套件裝不起來....
(easy_install, pip) • 最後stackflow,Google變成好朋友(也許無誤) • 然後⽤用scrapy的途中⼀一直不⼩小⼼心把別⼈人家打掛 了(淚,我不是故意的)
最後,我還是如期寫完了 (雖然我是個打雜的)
交接的時候,很快! ! <DEL>隨時可以讓公司不需要我</DE>
<DEL>如果同事不想接就沒辦法了....</DEL>
最後,到這個⽉月已經上線半年 多,⽽而我離職了...資料還在爬...
(茶)
在新⼿手狀態,我怎麼開始學習 FRAMEWORK ?
蝦⽶米是FRAMEWORK?
學習FRAMEWORK • 尋找官⽅方documents、quick start或cookbook • 好⼼心⼈人⼠士寫的教學、經驗談 • <del>中⽂文版教學</del> • 瞭解basic
concept
以SCRAPY來說...
None
None
後來我因為要爬資料的內容是 不固定⾴頁數的,吃了點苦頭
決定記下來怎麼⼊入⼿手SCRAPY http://blog.walile.info/blog/2012/08/18/scrapy-how-to/
希望對⼤大家有幫助
結論:結果⺫⽬目前的⼯工作 是PERL 也是被騙的(咦)