Python

Why Python?

學(xué)習(xí) Python 是為了更好地解決問題,由于完善的社區(qū)、面向?qū)ο蟮母呒?jí)編程語言更加強(qiáng)大、更加易用。Python 是動(dòng)態(tài)類型語言,使用起來更加靈活。

再者,目前 Python 在數(shù)據(jù)分析方面有多個(gè)強(qiáng)大的庫支持,底層C實(shí)現(xiàn)讓它跑起來速度也不差。


How to Learn?

1. 語法(1周)

Python的語法比較有特色,由于之前接觸過別的語言,上手起來不會(huì)難,要做的可能就是適應(yīng)新的語法,Python 中也有些特別的,例如它的模塊化邏輯、切片、列表推到式等,打算慢慢去了解,暫不做深究。

2. 數(shù)據(jù)分析庫(3周)

經(jīng)常被提到的數(shù)據(jù)分析包: Numpy, Pandas, MatplotLib.

主要學(xué)習(xí) Numpy,在此之前打算自己編程實(shí)現(xiàn)從低維到高維矩陣的各種運(yùn)算,一來是為了理解矩陣運(yùn)算邏輯(目前正在研究),二來是為了比較自己的實(shí)現(xiàn)和 Numpy 封裝算法的優(yōu)劣。

3. 實(shí)戰(zhàn)(不限期)

選一些案例,但還是主要以生活中、工作中出現(xiàn)的問題求解為主,我認(rèn)為這類問題的抽象能力比較重要,這也是提高學(xué)習(xí)能力的一個(gè)途徑,與自己有關(guān)的問題才更值得花時(shí)間、更有興趣去解決。

另外一個(gè)就是爬蟲,平常會(huì)用 Javascript 寫一些簡單的爬蟲,邏輯是通過 HTTP 請(qǐng)求獲取頁面信息,再解析出數(shù)據(jù),目前框架已經(jīng)很成熟了。


The Zen of Python

Python 2.7.10 (default, Aug 17 2018, 17:41:52) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

OK,貴在堅(jiān)持。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容