Python与PHP [英] Python vs PHP

查看:50
本文介绍了Python与PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python可以取代PHP吗?

我可以使用python程序创建一个mysql 4.X数据库的接口吗?

如果那可能在哪里可以我找到了一个教程?

Can Python replace PHP?
Can I use a python program to make an interface to a mysql 4.X database?
If that''s possible where can I find a tutorial?

推荐答案

嗨!


PHP-5让MySql失望,对于Sql- Lite(谣言?)


Python对MySql和Sql-Lite有很好的支持。


@ +


Michel Claveau
Hi !

PHP-5 let down MySql, for Sql-Lite (rumor ?)

Python has good support for MySql AND Sql-Lite.

@+

Michel Claveau


文章< ma ************************ *********@python.org> ,

Catalin< ad **** @ ploiesti.astral.ro>写道:
In article <ma*********************************@python.org> ,
Catalin <ad****@ploiesti.astral.ro> wrote:

Python能否取代PHP?
我可以使用python程序建立一个mysql 4.X数据库的接口吗?

Can Python replace PHP?
Can I use a python program to make an interface to a mysql 4.X database?




简短的回答是是两个问题,但有一点需要注意:Python是一种通用编程语言,其中PHP旨在编写
Web应用程序。因此,与使用PHP进行普通网页相同的方式使用

Python并不是那么简单/直接;相反,如果你在尝试编写复杂的程序逻辑时遇到了PHP困难,那么你会发现Python有很大的帮助。

-

Aahz(aa**@pythoncraft.com)< *> http://www.pythoncraft.com/


并非生活中的一切都在它前面有线索...... --JMS



The short answer is "yes" to both questions, but with a caveat: Python is
a general-purpose programming language, where PHP is designed to write
web applications. So it''s not quite as simple/straightforward to use
Python the same way you use PHP for plain web pages; conversely, if
you''ve been running into difficulty with PHP in trying to write
complicated program logic, you''ll find Python a big help.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"Not everything in life has a clue in front of it...." --JMS


新闻M Claveau / Hamster-P写道:
News M Claveau /Hamster-P wrote:
嗨!

PHP-5让人失望MySql,用于Sql-Lite(谣言?)
Hi !

PHP-5 let down MySql, for Sql-Lite (rumor ?)




PHP 5不会捆绑默认的MySql库,但任何人仍然是

免费链接官方MySQL lib,无论如何...


是的,默认的''捆绑''SQL库应该是Sql-lite。


布鲁诺



PHP 5 won''t come bundled with a default MySql lib, but anyone is still
free to link against the official MySQL lib, one way or another...

And yes, the default ''bundled-in'' SQL lib should be Sql-lite.

Bruno


这篇关于Python与PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆