print("Python之禅,Tim Peters著,blueloveTH译") print(' ') # Beautiful is better than ugly. print("优美胜于丑陋。") # Explicit is better than implicit. print("显式优于隐式。") # Simple is better than complex. print("简洁胜于复杂。") # Complex is better than complicated. print("复杂胜于凌乱。") # Flat is better than nested. print("扁平胜于嵌套。") # Sparse is better than dense. print("间隔胜于紧凑。") # Readability counts. print("可读性很重要。") # Special cases aren't special enough to break the rules. # Although practicality beats purity. print("即使特例具有实用性,也不足以打破这些规则。") # Errors should never pass silently. # Unless explicitly silenced. print("错误不应该悄无声息地传递,除非被明确地忽略。") # In the face of ambiguity, refuse the temptation to guess. print("当存在多种可能时,不要尝试去猜测。") # There should be one-- and preferably only one --obvious way to do it. print("应该有一种,且最好只有一种:显而易见的方法来做到这一点。") # Although that way may not be obvious at first unless you're Dutch. print("尽管这种方法一开始并非显而易见,除非你是Python之父。") # Now is better than never. print("做也许好过不做。") # Although never is often better than *right* now. print("但未经思考就动手还不如不做。") # If the implementation is hard to explain, it's a bad idea. print("如果无法清晰地描述你的方案,它一定是个糟糕的想法。") # If the implementation is easy to explain, it may be a good idea. print("如果你的方案很容易被人理解,它也许是个好主意。") # Namespaces are one honking great idea -- let's do more of those! print("命名空间是个绝妙的理念,让我们多加利用吧!")