Python是否像VB一样? [英] Is Python like VB?

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

问题描述

正如您可能知道或不知道的那样,Microsoft正在停止使用Visual Basic,而不是VB.NET的
,这意味着我需要找到一种新的简单编程语言。我听说Python是一种类似于VB的解释语言。这意味着

它没有像指针,类和模板那样的所有硬件,比如

C,C ++和汇编语言。

在我工作的地方,我们使用Microsoft Office进行大量自定义,使用

Visual Basic。我想切换到Python来实现它,因为VB已经停止了
。 Python会满足我们的要求吗?我需要制作大量的

GUI应用程序(消息框,表格等)并做基础业务

逻辑。


提前致谢。

As you may or may not know, Microsoft is discontinuing Visual Basic in favor
of VB.NET and that means I need to find a new easy programming language. I
heard that Python is an interpreted language similar to VB. This means that
it doesn''t have all the hard stuff like pointers, classes and templates like
C, C++ and assembly language.

Where I work we use Microsoft Office with a lot of customization using
Visual Basic. I would like to switch to Python to do it since VB is being
discontinued. Would Python meet our requirements? I need to make lots of
GUI applications (message boxes, forms, etc.) and do the underlying business
logic too.

Thanks in advance.

推荐答案

首先,停止使用VB并不意味着你必须停止使用它。

我参与了一个用Visual C 1.52编译的项目,在不受支持的情况下花了很多年b $ b。我工作的公司几乎每个

工程师都使用该项目。

我们仍在开发我在VB6中工作的项目,并且没有

保释理由。

对于新项目,查看VB.net或一些

替代方案是有意义的。

Python有类,但不是模板。但是,你不必在你的程序中使用

课程,但是如果你学会了它们会让生活更轻松。


Python的类没有C ++那么复杂,它是更好的

语言可供学习。


VB有类如果你没有在你的程序中使用它们,那么

你很有可能用Python也可以用这种方式进行编程,但是我没有... b $ b不会请注意它。


VB有一个比用于Python的IDE更好的IDE,尽管Eric3是

其中一个最好的,而且完全免费。


VB'的理想是它的优点,而不是语言本身。


如果你需要做Gui'然后学习

类的基础非常有用,从长远来看,你的代码会简单得多。


Python有很多gui工具包/框架,但是管理器

是pyQT,wxPyth on,pyGTK和TK / Tkinter。


你不必担心指针:-)

First of all, discontinuing VB doesn''t mean you have to stop using it.
I worked on a project which was compiled with Visual C 1.52, for many
years after it was not supported. The project is used by nearly every
engineer at the company where I work.
We are still devleoping the project I work on now in VB6, and have no
reason to bail.
For new projects, it would make sense to look into VB.net or some
alternative.

Python has classes, but not templates. However, you don''t have to use
classes in your program, but it will make life easier if you learned
them.

Python''s classes are not as complicated as C++, it''s a much better
language to learn from.

VB has classes too, and if you haven''t used them in your programs, then
there''s a good chance you can program that way with Python too, but I
wouldn''t make a point of it.

VB has a much better IDE than the IDE''s for Python, although Eric3 is
one of the best, and is absolutely free.

VB''s ide is it''s strongpoint, not the language itsself.

If you need to do Gui''s then it is extremely usefull to learn the
basics of classes, your code will be much simpler in the long run.

There are many gui toolkits/frameworks for Python, but the foreunners
are pyQT, wxPython, pyGTK, and TK/Tkinter.

You don''t have to worry about pointers though :-)

" Python会满足我们的要求吗?


是和否。因为Python是一种非常高级的语言,并且动态输入了
,所以很容易学习。 Python没有使用

指针,但是你能够编写面向对象的代码(而不是

只是像Visual Basic一样对象友好)。你会发现

它本身你不能做任何Office宏脚本虽然

有几个软件包会给你增加的功能,如

访问Com +对象(参见Mark Hammond的win32模块)。现在,这个

可能需要比使用VBA更多的工作,但它*是*可行的。 win32模块中的
部分可以让人们自己创建一个

宏语言!


Python是很强大。有许多第三方模块和

框架(Zope,CherryPy)。此外,还有许多GUI工具包

可供它使用(wxWindows,GTK,QT,Tk以及on和on)你可以使用它作为包装来写并编译为Java字节码(参见

Jython)。但是,问题在于,每个要求可能会或可能*不符合
。为此,你必须自己找出答案。我建议下载Python并给Python教程一个旋转和

然后看看其他与Python相关的东西:


[对于程序员:] http://docs.python.org/tut/ tut.html

[对于非程序员:] http://honors.montana.edu/~jjc/easytut/easytut/

[Win32 stuff:] http://starship.python.net/crew/mhammond/

[Tk' 'Tkinter'':]
http://www.pythonware .com / library / tkinter / introduction /

[wxPython:] http://www.wxpython.org/

[PyGTK:] http://www.pygtk.org/


通过这些链接,您可以很好地了解Python

是否适合您。当然我们都喜欢说''是的,Python很好

给你!''但是你必须自己调查。


祝你好运!


Harlin Seritt

"Would Python meet our requirements? "

Yes and no. Because Python is a very high-level language and
dynamically typed it is easy to learn. Python doesn''t make use of
pointers but you are able to write object-oriented code (as opposed to
just being object-friendly like Visual Basic is). You will find that on
its own you won''t be able to do any Office macro scripting although
there are several packages that will give you added functionality like
access to Com+ objects (see win32 modules by Mark Hammond). Now, this
may require more work than using VBA but it *is* doable. The com
portion of the win32 modules can enable one to create even a
macro-language unto itself!

Python is very powerful. There are many 3rd party modules and
frameworks (Zope, CherryPy). Also, there are many GUI toolkits
available for it (wxWindows, GTK, QT, Tk and on and on) and you can
also use it as a wrapper to write and compile to Java bytecode (see
Jython). The problem for you, however, is it may or may *not* meet
every requirement. For that you''ll have to find out for yourself. I
suggest downloading Python and giving the Python tutorial a whirl and
then taking a look at other Python-related stuff:

[For programmers:] http://docs.python.org/tut/tut.html
[For non-programmers:] http://honors.montana.edu/~jjc/easytut/easytut/
[Win32 stuff:] http://starship.python.net/crew/mhammond/
[Tk ''Tkinter'':]
http://www.pythonware.com/library/tkinter/introduction/
[wxPython:] http://www.wxpython.org/
[PyGTK:] http://www.pygtk.org/

Purusing these links will give you a very good idea of whether Python
is right for you. Naturally we''d all like to say ''YES Python is good
for you!'' but you have to investigate for yourself.

Good luck!

Harlin Seritt


2005年3月16日星期三21:33:36 -0800,迈克考克斯 < mi ********** @ yahoo.com>

在comp.lang.python中声明了以下内容:
On Wed, 16 Mar 2005 21:33:36 -0800, "Mike Cox" <mi**********@yahoo.com>
declaimed the following in comp.lang.python:
当你可能会或可能不会知道,微软正在停止使用Visual Basic支持VB.NET,这意味着我需要找到一种新的简单编程语言。 I


据我所知,VB.NET是Visual Basic的下一个版本,

利用了公共语言运行时。 - 据我所知,

是M
As you may or may not know, Microsoft is discontinuing Visual Basic in favor
of VB.NET and that means I need to find a new easy programming language. I
So far as I know, VB.NET is the next version of Visual Basic,
making use of the "common language runtime" -- which, as I understand,
is M


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

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