电脑安全

您当前的位置:主页 > 电脑安全 >

PHP与Python的比较 (PHP vs Python)-网络编程

来源:[db:来源]标题:   说过    编辑:电脑技术全能网 时间:2019-09-22 12:29

原标题:PHP与Python的比较 (PHP vs Python)-网络编程
   在这里,我节录了一些对于PHP和Python比拟的文章和探讨,让咱们能从别的一个 角度来对待PHP的长处和毛病。一样作为一种剧本言语,底层一样是由C言语来开辟的,Python是OO的,当初PHP也OO了。Python是多用处的(可用于桌面利用和web利用),PHP是特长于web利用的。当PHP还在忧?怎样整合出来大顺序时,Python早便可与Java,。NET相连了。。。。 * Python的可读性,可保护性比PHP好; * PHP的进展存在一个向后兼容性的成绩,Python不存在; * PHP的入门门坎底,Python比拟高(实在Python言语是挺简略的,难在要有OO的思维,PHP在OO化后,面对一样的成绩); * 到现在为止,支撑PHP的效劳器多,支撑Python的少 (跟着硬件本钱的下降,估量状态很快会转变)。已经有人说过,PHP的底层架构不合适用OO,那Python为甚么OO用的那末好?已经有人说过,PHP用OO速率慢,那用Python的人,为甚么并不感到慢?PHP用OO团体感到是件坏事,但看过Python当前,感到PHP当初完成OO的功效与方式比Python还多,是好仍是坏?作为一种剧本言语能否能很好的承载得起呢?感到PHP有点像昔时的C++,既要面向OO,又要兼容C,搞得倍庞杂。而Python有点像昔时的Java,从开端就是面向OO的,并驻足于剧本言语,对OO的功效与方式作了相称的简化,做本人力所能做的事件。PHP以简略易学而名,当初为了企业化利用,假如搞得像C++一样既要顾及兼容性,又简直通盘copy Java的OO功效,未免会变得庞杂,以后会不会被其余言语所取代呢?他山之石,能够攻玉。咱们能否应当进修一下Python,从中失掉一些启示呢?当初当各人都分歧看好PHP时,联合各种迹绍,我仿佛觉得了背地的一丝北风,。。。盼望只是己人忧天。从PHP进展的角度,为今之计,我想最好的方法,就是鼎力遍及推行PHP在中国的利用,先占据市场再说,因而写了个倡议 (衔接),惋惜看来也是胎死腹中了。。。==========================================================================第一局部:先容PythonWhat is Python?(PYTHON的中文说明 :http://www.okpython.com/bbs/thread-73-1-1.html)Python is a programming language that is freely available and that makes solving a computer problem almost as easy as writing out one''s thoughts about the solution. It can be written once and run on almost any computer without needing to change the program. In this section, you can learn more about what Python is, how it is used, and how it compares to other programming languages. Use the menu below to browse the various sections of this article.Python was first created by Guido von Rossum in 1990 and was named after the Brit-com Monty Python''s Flying Circus. It has since been developed by a large team of volunteers and is freely available from the Python Software Foundation. The most recent version of Python, 2.5, was released in September, 2006.Python is now found in many incarnations. At the website of the Python Software Foundation, Python is written in C. Other incarnations exist. A Java-based version of Python exists in Jython and may be used to work with Java c

上一篇:多文件上载系统完整版-网络编程

下一篇:没有了