1. 程式人生 > >Python學習的思維導圖

Python學習的思維導圖

人生苦短,我用Python

如果有其他的產品狗向我諮詢應該去學習什麼樣的程式語言,我會毫不猶豫地告訴他,學Python。Python語法簡單、用途廣泛、第三方包非常豐富,這些都是選擇Python的理由。然而,對我來說,最大的理由是:短。實現同樣的功能,Java需要很多行,Python可能只需要幾行就解決了,對於我這種只有比較少的時間編寫程式的人來說,尤為重要。『短』意味著多使用第三方的庫,儘量不要自己造輪子;同時也意味著看別人的程式碼會非常愉快。

Python的設計哲學:

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!

真的非常贊同Python的設計哲學。程式語言甚至包括計算機、網路、IDE本身只是一種工具,我們需要工具加快我們的效率,但是不能被工具綁架,我們最主要的精力要放在我們需要解決的問題上。

好了,不說其他的,附上一張我複習Python的思維導圖,希望對其他剛剛學習Python的人有用。
Python思維導圖

相關推薦

no