- Beautiful is better than ugly: Beautiful is better than ugly
- Explicit is better than implicit: clear is better than obscure
- Simple is better than complex: Simple is better than complex
- Complex is better than complicated: Complex is better than complicated
- Flat is better than nested: Flat is better than nested
- Sparse is better than dense: sparse is better than dense
- Readability counts: Readability is very important
- Special cases aren't special enough to break the rules: Special cases should not break the rules
- Although practicality beats purity: But reality is often not so perfect
- Errors should never pass silently: exceptions should not be handled silently
- Unless explicitly silenced: unless you wish so
- In the face of ambiguity, refuse the temptation to guess: When you encounter ambiguity, don’t guess
- There should be one-- and preferably only one --obvious way to do it: There must be one, usually and only one, best solution
- Although that way may not be obvious at first unless you're Dutch: Although that way may not be obvious at first unless you're Dutch:
- Now is better than never: Now is better than never
- Although never is often better than right now: not to do better than blindly
- If the implementation is hard to explain, it's a bad idea: 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: 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!: Namespaces are very useful, we should use more
Python study notes seven: Zen of Python (the Zen of Python)
Guess you like
Origin blog.csdn.net/amyniez/article/details/104556621
Ranking