花了一段时间,断断续续地啃完了Python核心编程与Python学习手册两本书。囫囵吞栆式地读完,不敢说有多懂,至少也入了个门。起初想学习Python,是因为接触到了LAMP,其中的P可以是Python,Perl,Php中的一个。上网查了查,发现Python比较简洁,于是便开始自学Python。

我接触到的语言不多,一开始接触到的是Pascal,后来还有C,C++,Shell。Shell属于脚本语言,先撇开不谈,在这几种语言当中,我发现Python的确是十分简洁的。在Python的思维方式中,明了胜于晦涩,简洁胜于复杂。在交互解释器中键入import this,可看到其设计原则。

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的使用范围之广,模块之多。诸如系统编程,GUI,Internet脚本,数据库编程,数值计算和科学计算编程,游戏,人工智能等等。

最近因为手上正好有一个大学生创新项目,是关于新浪微博的,于是便拿Python试炼了一下,正巧我们组中有一个人是学JAVA的,在我和他各自寻找资料的过程中,我发现对于同样的问题,Python的确比JAVA要简洁不少,更加易于使用。

Python代码不需要预编译和链接,可以直接运行,实际效果就是纯Python代码的运行速度介于传统编译语言和传统的解释语言之间。实际上在代码进行处理之前,在内部Python还会执行一些步骤,第一步是编译成所谓的“字节码”,之后将其转发到所谓的“虚拟机”中。

Python有三种实现方式。CPython是原始的,标准的实现方式,Jython是为了与Java编程语言集成,IronPython是为了与.NET相集成。

更多推荐

python绘制荷花_Python随想