python 中import的几个有趣的包之import this
程序员文章站
2024-02-24 18:04:31
...
import this
In [1]: 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!
上一篇: c# split分隔字符串使用方法
推荐阅读
-
python 中import的几个有趣的包之import this
-
python中import reload __import__的区别详解
-
详解Python中的from..import绝对导入语句
-
Python中import导入上一级目录模块及循环import问题的解决
-
详解Python中的from..import绝对导入语句
-
Thinkphp中import的几个用法详细介绍
-
Python 中包/模块的 `import` 操作代码
-
Python中import导入上一级目录模块及循环import问题的解决
-
Python中的并发处理之asyncio包使用的详解
-
python中from module import * 的一个坑