手机版
贴心博客(Imblog)(LOGO)

贴心博客(Imblog)

v5.7

基于`jquery2+bootstrap4+贴心猫`开发

PEP 20 -- The Zen of Python

发布:2022-01-13 19:11   点击:3次   评论:0
from: https://www.python.org/dev/peps/pep-0020/ ### PEP 20 -- The Zen of 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! from (henryPKU): https://www.zhihu.com/question/264791421/answer/286385738 Python 有一个最大的特点就是对语言风格非常看重,堪称各语言之最。它的创始人 Guido van Rossum 是一个语言风格强迫症患者,他亲自操刀写的 [PEP8] Python 风格指南 就像我们的《小学生守则》一般,入门必看。另外,同样著名的还有 [PEP20] Python 之禅 ,堪称每个 Python 程序猿的八字箴言
评论(0条) 评论列表
 

公司简介 企业文化 服务内容 公司新闻 公司图片 常见问题 联系我们 责权申明

贴心博客(Imblog)基于`jquery2+bootstrap4+贴心猫`开发; QQ群:607070548; 粤ICP备07020797号

Run:1.768/28.126(ms); 3(sql)/2.176(MB); v4:info/detail; Upd:2024-04-30 03:46:19