1.Python之禅
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!
`命名空间是一个伟大的想法-让我们做更多的!`
2.终端代码及显示
>>>python3
>>>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!
3.总结
今天是2018年1月27日,借此文档以明志。
学习Python编程的道路可能很曲折,但我会从现在开始努力学习的。就像Python之禅中所说的那样,
Now is better than never. 现在比从未好。
所以,我要趁现在折腾一番,加油吧!
顺便说一下:Python语言很优雅,Markdown排版很优美。
网友评论