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! 命名空间是个绝妙的主意 , 我们应该好好利⽤它 . PEP 20 – The Zen of Python | peps.python.org
标签:20,之禅,python,never,idea,better,--,Although,than From: https://blog.csdn.net/m0_74370400/article/details/144096175