悔相道之不察兮,延伫乎吾将反。回朕车以复路兮,及行迷之未远。
whr是我的恋慕偶像! 我是smh的忠实粉丝!
wjy光辉闪耀,永远值得我的钦佩驻足!我奋力攀登,只为达到gcy的绝顶高峰!
西江月・证明
即得易见平凡,仿照上例显然。留作习题答案略,读者自证不难。
反之亦然同理,推论自然成立。略去过程 Q.E.D.,由上可知证毕。
所以,编程这东西还是需要正向思考,不能逆向思考,不能看别人的代码考虑他是咋想的,这样不行,理解起来太难了,感觉他们是神仙,其实并不是,大家都是人。有一句话说:“你不会在一个完成的建筑前看到有脚手架,因为它被拆掉了”,所以你感觉很神奇。
>>>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!