为何选择Python? [英] Why Python?

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

问题描述

我正在研究学习Python,但在我花大量时间学习它之前,我想知道它的优点和缺点是什么。我的

首先想到的是它对编程有什么好处,但是我希望从python新闻组得到的答案就像是所有东西。所以

也许更好的问题是什么类型的编程项目是Python a

糟糕的选择?


什么使它更好或者比perl,php,delphi或

c ++这样的语言更糟糕了吗?


感谢您的意见。


Todd。

解决方案

2004年3月1日星期一02:11:46 GMT,Todd7写道:

我正在寻找在学习Python时,我想知道在我花大量时间学习它之前它的优点和缺点是什么。




Google搜索应该是乐于助人:


< http://www.google.com/search?q =%22why + python%22>


-

\政治家是一种可以坐在篱笆上的动物,而且只需要把双耳放在地上。 - Henry L. Mencken |
_o__)|

Ben Finney< http://bignose.squidly.org/>


>>>>> " Todd7" == Todd7< No **** @ please.com>写道:


Todd7>是什么让它比perl这样的语言更好或更差,

Todd7> php,delphi,或者c ++?


perl - python和perl都有很多很多外部模块写的

。 perl *可能*有更多。有些人喜欢perl有CPAN,

是模块的中央存储库。在我看来,现在我们有谷歌,这不是很重要。 python是面向对象的

骨头;与perl,OO是一个黑客。 python支持一个干净,简单,明确的语法,perl包含还有更多的方法可以做到这一点。

因此,大多数python编程员都觉得那个python代码更容易阅读和维护。


php - 广泛用于web开发并且有很多不错的软件包
$ b这个利基市场中的$ b - 公告板,数据库接口等等。

python将为每个区域提供包,但它们并不像广泛使用的那样。不是行业标准,例如

phymyadmin。 php并不像编程语言那么强大。

python是并且在网络领域之外没有被广泛使用

开发。查看最近的帖子
http://groups.google.com/groups?hl=e...%26scoring%3Dd


c ++ - 一种强大而复杂的大型语言。适合设计复杂的

软件包和性能非常重要的代码。使得文件IO,dbase和网络连接等文件比他们需要的更难以支付
。许多使用python的人喜欢混合语言编程风格:

对大多数事情使用python,并为处理器/性能密集型编写(或重用)C / C ++ / FORTRAN

扩展部分。有很多

好​​的工具(SWIG,F2Py,boost :: python等)用于自动化这个过程

从这些其他语言创建代码的python扩展。如果你需要高性能代码,那么最好知道如何用至少一种编译语言编写代码。

我的建议:先学习python。社区非常友好,并且接受新手的接受(你不会在perl或C ++上找到这个)b $ b新闻组。您将从世界专家那里获得有关编码和

风格的建议。 python编码器重视优雅,可读,高效,编写良好

代码,并会给你很多建议。


JDH


嗯,我是新手(大约2个月前开始准备高级

设计项目),而且我有一件事已经看到可能更好的是整体

文档;有时很难找到你想要的东西

(尤其是像Tkinter这样的图书馆用于GUI编程和Twisted for

网络编程)。这很可能,很难。


我注意到的好东西?好吧,做到目前为止我用Java做的事情

至少需要花费5倍,可能更像是我写的代码的10倍。一个简单但不错的TCP聊天服务器,大约有30行代码,这是我在看Python之前从未想过的东西。


Todd7 <否**** @ please.com>在留言中写道

news:Xn ********************************** @ 68.12 .19 .6 ...

我正在研究学习Python,但在我花大量时间学习它之前,我想知道它的优点和缺点是什么。我首先想到的是编程有什么好处,但是我希望python新闻组能够回答一切这样的问题。所以
也许更好的问题是什么类型的编程项目是Python的一个不好的选择?

是什么让它比perl,php,delphi或<等语言更好或更差br /> c ++?

感谢您的意见。

Todd。




I am looking at learning Python, but I would like to know what its
strengths and weaknesses are before I invest much time in learning it. My
first thought is what is it good for programming, however I expect an
answer from the python newsgroup to be something like "everything". So
maybe a better question is what type of programming projects is Python a
bad choice?

What makes it better or worse than languages like perl, php, delphi, or
c++?

Thanks for your opinions.

Todd.

解决方案

On Mon, 01 Mar 2004 02:11:46 GMT, Todd7 wrote:

I am looking at learning Python, but I would like to know what its
strengths and weaknesses are before I invest much time in learning it.



A Google search that should be helpful:

<http://www.google.com/search?q=%22why+python%22>

--
\ "A politician is an animal which can sit on a fence and yet |
`\ keep both ears to the ground." -- Henry L. Mencken |
_o__) |
Ben Finney <http://bignose.squidly.org/>


>>>>> "Todd7" == Todd7 <No****@please.com> writes:

Todd7> What makes it better or worse than languages like perl,
Todd7> php, delphi, or c++?

perl - both python and perl have many, many external modules written
for them. perl *may* have more. Some people like that perl has CPAN,
a central repository for modules. In my opinion, this is not so
important now that we have google. python is object oriented in its
bones; with perl, OO is a hack. python favors a clean, simple,
obvious syntax, perl embraces "there is more that one way to do it."
For this reason, most python coders feel that python code is easier to
read and maintain.

php - widely used for web development and has a lot of nice packages
in this niche - bulletin boards, database interfaces, and so on.
python will have packages for each of these areas, but they are not as
widely used and are not industry standard, in the way for example that
phymyadmin is. php is not as powerful a programming language as
python is and is not widely used outside the sphere of web
development. See the recent thread
http://groups.google.com/groups?hl=e...%26scoring%3Dd

c++ - a big, powerful, complex language. Good for designing complex
software packages and code where performance is important. Makes
things like file IO, dbase and web connectivity harder than they need
to be. Many who use python favor a mixed language programming style:
use python for most everything, and write (or reuse) C/C++/FORTRAN
extensions for processor/performance intensive parts. There are many
good tools (SWIG, F2Py, boost::python, etc) for automating the process
of creating python extensions of code from these other languages. If
you need high performance code, it''s good to know how to write code in
at least one of these compiled languages.

My advice: learn python first. The community is very friendly and
receptive to newcomers (you won''t find this on perl or C++
newsgroups). You''ll get advice from world experts on coding and
style. python coders value elegant, readable, efficient, well written
code and will give you lots of advice along these lines.

JDH


Well, I''m new at it (started about 2 months ago in preparation for senior
design project), and the one thing I''ve seen that could be better is overall
documentation; sometimes it is hard to find what you''re looking for
(especially in libraries like Tkinter for GUI programming and Twisted for
network programming). It''s possible, just hard.

The good things I''ve noticed? Well, to do what I''ve done so far in Java
would have taken at least 5 and probably more like 10 times the code I''ve
written. A simple yet decent TCP chat server in about 30 lines of code is
something I never considered possible before looking at Python.

"Todd7" <No****@please.com> wrote in message
news:Xn**********************************@68.12.19 .6...

I am looking at learning Python, but I would like to know what its
strengths and weaknesses are before I invest much time in learning it. My
first thought is what is it good for programming, however I expect an
answer from the python newsgroup to be something like "everything". So
maybe a better question is what type of programming projects is Python a
bad choice?

What makes it better or worse than languages like perl, php, delphi, or
c++?

Thanks for your opinions.

Todd.




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

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