我应该学习Python吗? [英] Should I learn Python?

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

问题描述



我过去几年一直使用

PHP和mysql开发网站和cms'。我一直对学习一门新语言很感兴趣,并且考虑到Python,它是
。我对OOP概念有很好的掌握(我知道,自从我提到PHP以来你对此持怀疑态度)。我没有正式的

编程背景,只是随时随地学习。


所以,说到这里,这里有一些愚蠢的问题。


1.我用Python做什么我不能用PHP做什么?


2.你是否同时使用PHP和Python相互结合?


3.我可以用什么方式利用Python来补充现有的网站或用PHP构建的
应用程序?


感谢您的帮助。

解决方案

Samaécrit:

PHP和mysql在过去几年里一直在开发网站和cms。我一直对学习一门新语言感兴趣,并且考虑使用Python。我对OOP概念有很好的把握(我知道,自从我提到PHP以来你对此持怀疑态度)。我没有正式的编程背景,只是随时随地学习。

所以,说到这里,这里有一些愚蠢的问题。

1.我可以用Python做什么,我不能用PHP做什么?
< troll>

1 /写清楚,结构良好,可读代码,

2 /玩得开心

< / troll>

3 /使用Zope

4 /使用Twisted

5 /等等......

2。你是否同时使用PHP和Python?
编号我使用PHP来处理遗留应用程序和非常愚蠢的脚本。

3.我可以用什么方式利用Python来补充现有网站或用PHP构建的应用程序?
a cgi是一个cgi,无论语言是什么(php,perl,python,bash,C,

COBOL,汇编......)。

谢谢你任何帮助。



HTH


bruno modulix< on *** @ xiludom.gro>写道:

3.我用什么方式利用Python来赞美现有网站或用PHP构建的应用程序?


a cgi是一个cgi,无论语言是什么(php,perl,python,bash,C,
COBOL,汇编....)。




但是那里网络应用程序比CGI要多得多。


2004年11月2日13:28:22 -0800,Sam< sa*@three60.com>写道:


我使用
PHP和mysql过去几年一直在开发网站和cms'。我一直对学习一门新语言感兴趣,并且考虑使用Python。我对OOP概念有很好的把握(我知道,自从我提到PHP以来你对此持怀疑态度)。我没有正式的编程背景,只是随时随地学习。

所以,说到这里,这里有一些愚蠢的问题。

1.我用Python做什么我不能用php做什么?

2.你是否同时使用PHP和Python?

3我可以用什么方式利用Python来赞美现有网站或用PHP构建的应用程序?

感谢您的帮助。
-
http://mail.python.org/mailman/listinfo/python-list




学习Python将是您开发的下一步。

大多数编程教科建议您至少学习一个新的
每年
语言。 Python是一个干净,设计良好的语言,应该让你学习简单(和有趣)。


但是要回答你的问题:

1. PHP是一种Web脚本语言,Python是一种通用的

脚本语言。您可以在Web环境之外使用PHP,但是

这真的不是它的优点。你可以在任何地方使用Python




2.不。我在哪里工作,我们有一个用PHP编写的内部应用程序但是

转向专门用Python开发。我们已经考虑过

潜在地使用PHP作为表示层,使用Python作为

业务逻辑但是还没有那么远。

3.你在哪里需要它?如果PHP适用于您的网站,那么Python可能不会是一个必要的补充。


HTH,

Melissa


Hi,
I have been developing sites and cms''s for the past few years using
PHP and mysql. I''ve been interested in learning a new language and was
considering Python. I have a pretty decent grasp of OOP concepts (i
know, you''re skeptical since I mentioned PHP). I don''t have a formal
programming background, just learning as I go.

So, with that being said, here are some dumb questions.

1. What can I do with Python that I can''t do with php?

2. Do you use both PHP and Python in conjunction with each other?

3. In what way could I utilize Python to compliment existing sites or
apps built with PHP?

Thanks for any help.

解决方案

Sam a écrit :

Hi,
I have been developing sites and cms''s for the past few years using
PHP and mysql. I''ve been interested in learning a new language and was
considering Python. I have a pretty decent grasp of OOP concepts (i
know, you''re skeptical since I mentioned PHP). I don''t have a formal
programming background, just learning as I go.

So, with that being said, here are some dumb questions.

1. What can I do with Python that I can''t do with php? <troll>
1/ Write clean, well structured, readable code,
2/ Have Fun
</troll>
3/ Use Zope
4/ Use Twisted
5/ etc...
2. Do you use both PHP and Python in conjunction with each other? No. I use PHP for legacy apps and really dumb scripting.
3. In what way could I utilize Python to compliment existing sites or
apps built with PHP? a cgi is a cgi, whatever the language (php, perl, python, bash, C,
COBOL, assembly....).
Thanks for any help.


HTH


bruno modulix <on***@xiludom.gro> wrote:

3. In what way could I utilize Python to compliment existing sites or
apps built with PHP?


a cgi is a cgi, whatever the language (php, perl, python, bash, C,
COBOL, assembly....).



But there''s a lot more to web applications than CGI.


On 2 Nov 2004 13:28:22 -0800, Sam <sa*@three60.com> wrote:

Hi,
I have been developing sites and cms''s for the past few years using
PHP and mysql. I''ve been interested in learning a new language and was
considering Python. I have a pretty decent grasp of OOP concepts (i
know, you''re skeptical since I mentioned PHP). I don''t have a formal
programming background, just learning as I go.

So, with that being said, here are some dumb questions.

1. What can I do with Python that I can''t do with php?

2. Do you use both PHP and Python in conjunction with each other?

3. In what way could I utilize Python to compliment existing sites or
apps built with PHP?

Thanks for any help.
--
http://mail.python.org/mailman/listinfo/python-list



Learning Python would be an excellent next step in your development.
Most programming textbooks recommend you learn at least one new
language a year. Python is a clean, well designed language and should
be straightforward (and fun) for you to learn.

But to answer your questions:
1. PHP is a web scripting language and Python is a general purpose
scripting language. You can use PHP outside of a web environment but
that really isn''t its strong point. You can use Python pretty much
anywhere.

2. No. Where I work we have one internal app written in PHP but are
moving towards developing exclusively in Python. We have thought about
potentially using PHP for the presentation layer and Python for the
business logic but haven''t gotten that far yet.

3. Where do you need it? If PHP works for your site then Python may
not be a necessary addition.

HTH,
Melissa


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

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