Python与其他语言相比 [英] Python compared to other language

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

问题描述

大家好,


我一直在研究各种可用的编程语言。我从小就开始在Basic编写了
,我对C有了基本的理解,但是我想要更好的东西。


有人可以告诉我使用Python的好处和缺点吗?


-

你的朋友,

Scott


使用Kubuntu 7.04版(Feisty Fawn)从Linux计算机发送给您

解决方案

5月18,下午3:04,scott< sle ... @ rogers.comwrote:


大家好,


我一直在研究各种可用的编程语言。我从小就开始在Basic编写了
,我对C有了基本的理解,但是我想要更好的东西。


有人能告诉我使用Python的好处和缺点吗?



这个问题在这里被问过几百次 - 阅读这个组的

档案和网上的语言比较,对于

例如Eric Raymond在 http: //www.faqs.org/docs/artu/languageschapter.html

..


更好的是,试试语言并画出你的自己的结论。


scott写道:


大家好,


我一直在研究各种可用的编程语言。

我从小就开始使用Basic编程,我也有基本的

理解C,但我想要更好的东西。


有人能告诉我使用Python的好处和缺点吗?



搜索档案,这个问题已被多次覆盖。


那就说下面我将列出一些好处:


Python是便携式的 - C可能是唯一更便携的语言


Python功能强大 - 您可以编写从简单脚本到

守护进程,Windows服务,Windows COM对象,Web框架,GUI

或控制台程序的所有内容。再次只有C有这么大的范围。在Windows上,

德尔福接近尾声,但尝试将Delphi程序移至Macintosh或

甚至连Linux。我只是将Python程序从一个操作系统复制到了另一个操作系统,而且它们的运行时间没有那么多。


Python具有强大的标准库 - 标准库包含许多

模块,您必须使用其他语言购买这些模块。这个

增加了可移植性,因为许多功能都是标准的,而且不需要额外的



Python是可维护的 - Python强迫你编写更好的代码。

从块的必需缩进到丰富的内置数据类型

它为程序员提供了一遍又一遍地使用的工具。我已经回到了我5年多前写过的节目中,这真是太了不起了。

我能多快记得我在做什么。


Python是一种强类型但动态的语言 - 我一直很讨厌

事实上你必须用其他语言定义所有内容。在

Python中,您可以在需要时定义一些内容,并且定义为

隐含在您指向变量名称的帽子中。 Python提供的内省

也可以让你做一些非常强大的东西

因为你可以让你的代码自我意识。虽然编译语言

有它们的位置,但我可以将Python用于日常工作。如果我发现自己需要在我的代码中获得更多性能,我会将该代码隔离到一个

外部C库中并从Python中调用它。 Python提供的数据类型(列表,元组,字典)是b / b
程序员所需要的。如果你没有你想要的数据类型,它很容易使用Python类创建一个。


Python有很多有用的用户 - 这份清单很棒。发布

一个问题,即使是最优惠的
复杂的查询,你也不会得到一个答案。这个列表提供了最好的技术支持

我在30多年的编程中使用的任何语言我用过的语言很多



Python让我能够很好地学习一种语言 - 因为我能用几乎任何我能用Python编写的东西来做几乎所有的事情,我觉得我写的几乎是

100%的Python代码。这意味着我越来越好了

Python没有学到很多我永远不会知道的其他语言

well。


我希望你能找到至少有用的信息。


问候,

拉里


< blockquote>文章< 11 ********************* @ o5g2000hsb.googlegroups.c om>,

Beliavsky< be * ******@aol.comwrote:


> 5月18日下午3:04,scott< sle ... @ rogers.comwrote:


>大家好,

我一直在研究各种可用的编程语言。我从小就开始使用Basic编程,我对C有基本的了解,但我想要更好的东西。

任何人都可以告诉我它的优点和缺点使用Python?


这个问题在这里被问了好几百次 - 阅读这个组的档案和网上的语言比较,例如Eric的那个雷蒙德在
http://www.faqs.org/ docs / artu / languageschapter.html


更好的是,试试语言并得出自己的结论。



... [语言]并得出你自己的结论比起原始提问者可能意识到的更好的建议,因为他并不知道
但是知道开始使用Python的成本有多低< URL:
http://www.awaretek.com/tutorials.html > ;


在此期间,< URL:
http://wiki.python.org/moin/LanguageComparisons 可能是

兴趣。


Hi all,

I have been looking at the various programming languages available. I
have programed in Basic since I was a teenager and I also have a basic
understanding of C, but I want something better.

Can anybody tell me the benefits and weaknesses of using Python?

--
Your friend,
Scott

Sent to you from a Linux computer using Kubuntu Version 7.04 (Feisty Fawn)

解决方案

On May 18, 3:04 pm, scott <sle...@rogers.comwrote:

Hi all,

I have been looking at the various programming languages available. I
have programed in Basic since I was a teenager and I also have a basic
understanding of C, but I want something better.

Can anybody tell me the benefits and weaknesses of using Python?

That question has been asked hundreds of times here -- read the
archives of this group and language comparisons on the web, for
example the one by Eric Raymond at http://www.faqs.org/docs/artu/languageschapter.html
..

Even better, try the language and draw your own conclusions.


scott wrote:

Hi all,

I have been looking at the various programming languages available.
I have programed in Basic since I was a teenager and I also have a basic
understanding of C, but I want something better.

Can anybody tell me the benefits and weaknesses of using Python?

Search the archives, this question has been covered many times.

That said I''m going to list some benefits below:

Python is Portable - C is probably the only more portable language

Python is Powerful - You can write everything from simple scripts to
daemons, Windows Services, Windows COM objects, web frameworks, GUI
or console programs. Again only C has that much range. On Windows,
Delphi comes close, but try to move a Delphi program to Macintosh or
even to Linux. I''ve merely copied Python programs from one OS to
another and they have run without so much as a single change.

Python has strong standard library - The standard library contains many
modules that you would have to purchase with other languages. This
adds to portability because many features are standard and don''t
require additions.

Python is maintainable - Python coerces you into writing better code.
From the required indention of blocks to the rich built in data types
it provides a programmer with tools that you use over and over. I''ve
gone back to programs that I wrote 5+ years ago an it was remarkable
how quickly I could remember what I was doing.

Python is a strongly typed but dynamic language - I have always hated
the fact that you have to define everything in other languages. In
Python you define something when you need it and the definition is
implicit in hat you point to with a variable name. The introspection
that Python provides also lets you do some really powerful things
because you can make your code self-aware. While compiled languages
have their place, give me Python for my daily work. If I find myself
needing more performance in my code, I isolate that code into an
external C library and call it from Python. The data types that are
provided by Python (lists, tuples, dictionaries) are exactly what
programmers need. If you don''t have a datatype that you want, its
easy to create one using Python classes.

Python has strong group of helpful users - This list is amazing. Post
a question and you get not one but several answers to even the most
complex of inquiries. This list provides the BEST technical support
of any language I''ve ever used in my 30+ years of programming many
different languages.

Python allows me to get really good at one language - Since I can do
almost anything that I can dream up in Python, I find I write almost
100% of my code in Python. This means that I am getting better at
Python not learning lots of other languages which I will never know
well.

I hope you find the information at least helpful.

Regards,
Larry


In article <11*********************@o5g2000hsb.googlegroups.c om>,
Beliavsky <be*******@aol.comwrote:

>On May 18, 3:04 pm, scott <sle...@rogers.comwrote:

>Hi all,

I have been looking at the various programming languages available. I
have programed in Basic since I was a teenager and I also have a basic
understanding of C, but I want something better.

Can anybody tell me the benefits and weaknesses of using Python?


That question has been asked hundreds of times here -- read the
archives of this group and language comparisons on the web, for
example the one by Eric Raymond at
http://www.faqs.org/docs/artu/languageschapter.html
.

Even better, try the language and draw your own conclusions.

"... [T]ry the language and draw your own conclusions" is better
advice than the original questioner might realize, for he doesn''t
yet know how low is the cost to get started with Python <URL:
http://www.awaretek.com/tutorials.html >.

In the meantime, <URL:
http://wiki.python.org/moin/LanguageComparisons might be of
interest.


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

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