如果问我在这个时代
什么知识和技能是最有用的
最值得去学习的
最值得让它占据我们大脑的
Python应该在其中
------潘石屹
文末附上Python相关教学视频及电子书
以下是往期小白菌分享的相关Python学习资料,
免费~免费~免费~
送给真正需要的小伙伴!
好了,最后的最后,
请大家在Python交互式环境中输入以下代码,
1import this
您将看到由Tim Peter撰写的“Python之禅”,
大家好好欣赏下吧!
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!
里面讲述的道理不仅仅适用于Python,
同时也适用于其他编程语言。