{%hackmd @dzif24x25/yRBnguqQQl-2ylH1j5h0cg %}
# Python簡介
---
# Python簡介
---
## Python是一種:
* #### 廣泛直譯式 (Interpreted Language)
* #### 物件導向 (Object Oriented Language)
#### 的程式語言
----
## Python具有:
* #### 動態型別系統
* #### 垃圾回收(Garbage Collection)功能
* 可以:
自動管理記憶體使用,主動回收不再使用的記憶體空間。
----
#### 由於Python原始碼的**開放性**,使每個人都可以為其**貢獻**,為其開發更多好用的套件(Package),讓程式設計師能夠減輕負擔,加快程式開發的速度。
---
## Python常見的應用
----
網頁服務:Django、Flask


----
圖形化使用者介面:Tkinter, PyQt


----
資料科學:NumPy, SciPy, matplotlib, TensorFlow, PyTorch


----
科學計算:NumPy, SciPy, matplotlib, TensorFlow, PyTorch


----
遊戲: pygame

----
人工智慧、機器學習:TensorFlow, PyTorch, Scikit-learn, Keras


---
## Python的起源
---
#### Python的創始人是 [吉多·范羅蘇姆](https://en.wikipedia.org/wiki/Guido_van_Rossum)(荷蘭語:Guido van Rossum)

* #### 1956年出生於荷蘭
* #### 1982年於阿姆斯特丹大學獲得數學和電腦科學碩士學位
----
#### 吉多·范羅蘇姆曾在O'Reilly出版社作者Mark Lutz的"Programming Python"中的序言寫道:
>六年前,在1989年12月,我在尋找一門「課餘」編程專案來打發聖誕節前後的時間。我的辦公室會關門,但我有一台家用電腦,而且沒有太多其它東西。我決定為當時我正構思的一個新的手稿語言寫一個直譯器,它是ABC語言的後代,對UNIX / C程式設計師會有吸引力。作為一個略微有些無關想法的人,和一個蒙提·派森的飛行馬戲團(Monty **Python**'s Flying Circus)的狂熱愛好者,我選擇了Python作為專案的標題。
----
1999年,吉多·范羅蘇姆向美國國防部下的國防高等研究計劃署(DARPA)提出經費申請,並立下了Python的目標:
* 一門**簡單直觀**的語言並與主要競爭者一樣強大。
* **開源**,以便任何人都可以為它做貢獻。
* 代碼像純英語那樣**容易理解**。
* 適用於短期開發的日常任務。
---
## Python彩蛋
只需要執行以下程式,就可以看到這首詩:
```python=
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!
{"metaMigratedAt":"2023-06-17T21:50:47.115Z","metaMigratedFrom":"YAML","title":"Python簡介","breaks":true,"contributors":"[{\"id\":\"b1b336d5-b75d-4c19-b4f6-fccd69a2a9f2\",\"add\":2009,\"del\":1145},{\"id\":\"28b47a62-f757-4c45-9850-2e0af27b37a6\",\"add\":2079,\"del\":0}]"}