色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

python 死亡之評論

謝彥文2年前8瀏覽0評論

Python 死亡之評論,指的是一篇由 Guido van Rossum 在2006年發(fā)表的文章 "Python Enhancement Proposal #3099"。在這篇文章中,他描述了Python 3.0版本將會對Python 2.x版本進行重大的更改,包括語法、模塊、庫等等方面。

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!

不過,Python 3.0的發(fā)布卻并不像預想的那樣順利。由于在語言設計方面進行了大量的更改,導致很多庫和代碼無法在新版本中運行。而且,在Python 2.x版本中許多庫和代碼被廣泛應用,因此升級到Python 3.0相當于重新開始。

不過,Python社區(qū)并沒有放棄,他們開始從Python 2.x版本中進行逐步升級,以適應Python 3.x版本。幾年來,Python 3.x版本已經(jīng)穩(wěn)定下來,越來越多的庫和代碼已經(jīng)被移植到 Python 3.x 版本中,Python 3.x版本也在不斷的更新優(yōu)化中。

在Python的發(fā)展歷史中,Python 3.0的發(fā)布可以說是一次重大的變革。當然,這也給了Python社區(qū)一個機會,讓他們不斷地優(yōu)化和改進這一優(yōu)秀的語言。