python之禪怎么打出來,python之禪源代碼_python之禪

 2023-12-12 阅读 33 评论 0

摘要:Beautiful is better than ugly. # 優美勝于丑陋 python之禪怎么打出來。Explicit is better than implicit. # 明了勝于晦澀 Simple is better than complex. 編程之禪。# 簡潔勝于復雜 Complex is better than complicated. # 復雜勝于凌亂 Flat is better than nested. # 扁

Beautiful is better than ugly.

# 優美勝于丑陋

python之禪怎么打出來。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.

# 雖然這并不容易,因為你不是 Python 之父

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!

# 命名空間是一種絕妙的理念,我們應當多加利用

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/194389.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息