关于python现实生活教程的OO? [英] OO on python real life tutorial?

查看:91
本文介绍了关于python现实生活教程的OO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我用Perl / Tk编写了我的+ 10k行应用程序。它就像一个酒店的b $ b软件管理器,它有一堆窗口来管理到货,

账单等等。我想在Python / WxPython上移植它但是我想

获得python的好处,而不仅仅是逐行原始移植。


我的问题是我无法弄清楚如何在我的

案件中,OO可能很有用。有没有OO教程可以帮助我?


谢谢,


Filippo

解决方案

" filippo"写道:


我使用Perl / Tk编写了我的+ 10k行应用程序。它就像一个酒店的b $ b软件管理器,它有一堆窗口来管理到货,

账单等等。我想在Python / WxPython上移植它但是我想

获得python的好处,而不仅仅是逐行原始移植。


我的问题是我无法弄清楚如何在我的

案件中,OO可能很有用。有没有OO教程可以帮助我?



你需要多少? ;-)


这里是Jay Parlar提出的python教程的课程介绍:

http://pytut.infogami.com/node11-baseline.html


我自己也没见过,但相关的ShowMeDo视频可能是

有用:

http://showmedo.com/videos/series?na...IPython_JerolH


另见如何像计算机科学家一样思考中的第12-16章:

http://www.ibiblio.org/obp/thinkCSpy/

< / F>


filippo写道:


您好,


我编码了我的+使用Perl / Tk的10k行app。它就像一个酒店的b $ b软件管理器,它有一堆窗口来管理到货,

账单等等。我想在Python / WxPython上移植它但是我想

获得python的好处,而不仅仅是逐行原始移植。


我的问题是我无法弄清楚如何在我的

案件中,OO可能很有用。



请注意,我在这里有点偏颇,我的意见可能不是主流的b $ b,但我认为OO不会在你的情况下很有用,所以没有理由了解它。

逐行移植就可以了可能

Python / Tk为了避免在wxPython中编程,如果不是真的需要
(wxPython在项目规模不断扩大时有其优势,但是

你的价格仍远低于门槛值。

按照这种方式考虑:如果你无法弄清楚OO如何有用,

只是更加自信和接受启示,它可能或者甚至肯定都不会。


Claudio Grondi

有没有OO教程在那里帮助我?


>

谢谢,


Filippo


感谢Fredrik和Claudio,


可能是我需要的结构化编码范例。克劳迪奥,你能不能用b $ b来解释下面的句子更好?


Claudio Grondi ha scritto:


Python / Tk为了避免在wxPython中进行编程,如果不是真的那么需要
(wxPython在项目规模不断扩大的情况下有其优势,但

你的仍然远远低于阈)。



我想切换到wxpython因为我不太喜欢Tk。有时完全控制小部件很困难(即关注

序列)。为什么你认为wxwidget不适合低中等的b $ b大小的项目?你能给我一些实际的例子吗?


谢谢和致以最诚挚的问候,


Filippo


Hello,

I coded my +10k lines app using Perl/Tk. It is something like a hotel
software manager, it has a bunch of windows to manage the arrivals,
bills etc etc. I want to port this on Python/WxPython but I''d like to
get benefit of python, not just doing a row by row raw porting.

My problem is that I cannot figure out how OO could be useful in my
case. Is there a OO tutorial out there to help me?

Thanks,

Filippo

解决方案

"filippo" wrote:

I coded my +10k lines app using Perl/Tk. It is something like a hotel
software manager, it has a bunch of windows to manage the arrivals,
bills etc etc. I want to port this on Python/WxPython but I''d like to
get benefit of python, not just doing a row by row raw porting.

My problem is that I cannot figure out how OO could be useful in my
case. Is there a OO tutorial out there to help me?

How many do you need ? ;-)

Here''s Jay Parlar''s proposed class intro for the python tutorial:

http://pytut.infogami.com/node11-baseline.html

I haven''t seen them myself, but the related ShowMeDo videos might be
helpful:

http://showmedo.com/videos/series?na...IPython_JerolH

See also chapters 12-16 in "How to Think Like a Computer Scientist":

http://www.ibiblio.org/obp/thinkCSpy/

</F>


filippo wrote:

Hello,

I coded my +10k lines app using Perl/Tk. It is something like a hotel
software manager, it has a bunch of windows to manage the arrivals,
bills etc etc. I want to port this on Python/WxPython but I''d like to
get benefit of python, not just doing a row by row raw porting.

My problem is that I cannot figure out how OO could be useful in my
case.

Be warned, that I am a bit biased here and my opinion is probably not
mainstream, but I think OO won''t be useful in your case, so there is no
reason to learn about it.
A row by row porting will be ok, but if I were you, I would use probably
Python/Tk for it in order to avoid programming in wxPython if not really
necessary (wxPython has its strengths with growing project sizes, but
yours is still far below the threshold).
Consider it that way: if you cannot figure out how OO could be useful,
just be more self-confident and accept the enlightenment, that it
probably or even for sure can''t.

Claudio Grondi
Is there a OO tutorial out there to help me?

>
Thanks,

Filippo


thanks Fredrik and Claudio,

probably structured coding paradigm is what I need. Claudio, could you
explain better your sentence below?

Claudio Grondi ha scritto:

Python/Tk for it in order to avoid programming in wxPython if not really
necessary (wxPython has its strengths with growing project sizes, but
yours is still far below the threshold).

I want to switch to wxpython because I don''t like Tk too much. It is
difficult sometimes to have full control of the widgets (i.e. focus
sequence). Why do you think wxwidget is not suitable for low-medium
size projects? Could you give me some practical examples of this?

Thanks and best regards,

Filippo


这篇关于关于python现实生活教程的OO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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