Python论坛  - 讨论区

标题:[python-chinese] 新手,请问从哪里可以找到一些源代码来阅读

2006年11月21日 星期二 08:57

张爱华 ahzhang828在gmail.com
星期二 十一月 21 08:57:37 HKT 2006

ÏÖÔÚÐèÒªÓÃpythonдһ¸ö½âÎöhtmlµÄ³ÌÐò£¬pythonµÄÓï·¨¶¼¿´µÃÃ÷°×£¬¿ÉÊǸоõ»¹ÊǺÜÄѱà³Ì£¬Ï£Íû¸÷λÄÜÖ¸µãһϣ¬ÄÄÓÐÏà¹ØµÄÔ´´úÂë¿ÉÒÔÔĶÁ£¬¶àл¶àл
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061121/3bcf614a/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 09:03

yi huang yi.codeplayer在gmail.com
星期二 十一月 21 09:03:00 HKT 2006

>
> 现在需要用python写一个解析html的程序
> ,python的语法都看得明白,可是感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多谢多谢
>

看 CookBook <http://wiki.woodpecker.org.cn/moin/PyCookbook>




-- 
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061121/62121b37/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 09:03

yi huang yi.codeplayer在gmail.com
星期二 十一月 21 09:03:47 HKT 2006

and http://awaretek.com/tutorials.html

On 11/21/06, 张爱华 <ahzhang828 at gmail.com> wrote:
>
> 现在需要用python写一个解析html的程序,python的语法都看得明白,可是感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多谢多谢
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061121/fd1e6f56/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 09:16

amingsc amingsc在gmail.com
星期二 十一月 21 09:16:50 HKT 2006

我的看法是多实践
自己做一个好玩点的小项目练练会进步很快
遇到问题再去查看文档、book、sourcecode,最后不行才是到list求助
完成两个小项目你就不会有这样的感觉啦

yi huang 写道:
> and http://awaretek.com/tutorials.html
>
> On 11/21/06, *张爱华* <ahzhang828 at gmail.com 
> ahzhang828 at gmail.com>> wrote:
>
>     现在需要用python写一个解析html的程序,python的语法都看得明白,可是
>     感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多
>     谢多谢
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese at lists.python.cn
>     python-chinese at lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     Unsubscribe: send unsubscribe to  
>     python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> -- 
> http://codeplayer.blogspot.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 10:15

张爱华 ahzhang828在gmail.com
星期二 十一月 21 10:15:32 HKT 2006

àÅ,¶àл.
ÏÖÔÚÕâ¸ö¹¤×÷¾ÍÊÇÒ»¸öСÏîÄ¿,°´ÕÕÎÒÒÔÇ°µÄÏ°¹ß¶¼ÊÇÏÈ¿´Ò»Ï»ù±¾Óï·¨ÔÙ¿´Àý×ÓÔÙ¿´¿âµÄ
Õâ´ÎûÓÐÕÒµ½Ïà¹ØµÄÀý×ӱȽÏÓôÃÆ

2006/11/21, amingsc <amingsc在gmail.com>:
>
> ÎҵĿ´·¨ÊǶàʵ¼ù
> ×Ô¼º×öÒ»¸öºÃÍæµãµÄСÏîÄ¿Á·Á·»á½ø²½ºÜ¿ì
> Óöµ½ÎÊÌâÔÙÈ¥²é¿´Îĵµ¡¢book¡¢sourcecode£¬×îºó²»ÐвÅÊǵ½listÇóÖú
> Íê³ÉÁ½¸öСÏîÄ¿Äã¾Í²»»áÓÐÕâÑùµÄ¸Ð¾õÀ²
>
> yi huang дµÀ:
> > and http://awaretek.com/tutorials.html
> >
> > On 11/21/06, *ÕÅ°®»ª* <ahzhang828在gmail.com
> > ahzhang828在gmail.com>> wrote:
> >
> >     ÏÖÔÚÐèÒªÓÃpythonдһ¸ö½âÎöhtmlµÄ³ÌÐò£¬pythonµÄÓï·¨¶¼¿´µÃÃ÷°×£¬¿ÉÊÇ
> >     ¸Ð¾õ»¹ÊǺÜÄѱà³Ì£¬Ï£Íû¸÷λÄÜÖ¸µãһϣ¬ÄÄÓÐÏà¹ØµÄÔ´´úÂë¿ÉÒÔÔĶÁ£¬¶à
> >     л¶àл
> >     _______________________________________________
> >     python-chinese
> >     Post: send python-chinese在lists.python.cn
> >     python-chinese在lists.python.cn>
> >     Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     python-chinese-request在lists.python.cn>
> >     Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> >
> > --
> > http://codeplayer.blogspot.com/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061121/30a0759e/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 10:30

麦田守望者 qcxhome在gmail.com
星期二 十一月 21 10:30:21 HKT 2006

Python手册中的一段代码,它使用了HTMLParser类

from HTMLParser import HTMLParser

class MyHTMLParser(HTMLParser):

    def handle_starttag(self, tag, attrs):
        print "Encountered the beginning of a %s tag" % tag

    def handle_endtag(self, tag):
        print "Encountered the end of a %s tag" % tag



--------------------------------------------------------------------------------


On 11/21/06, 张爱华 <ahzhang828 at gmail.com> wrote:
> 嗯,多谢.
> 现在这个工作就是一个小项目,按照我以前的习惯都是先看一下基本语法再看例子再看库的
> 这次没有找到相关的例子比较郁闷
>
> 2006/11/21, amingsc <amingsc at gmail.com>:
> > 我的看法是多实践
> > 自己做一个好玩点的小项目练练会进步很快
> > 遇到问题再去查看文档、book、sourcecode,最后不行才是到list求助
> > 完成两个小项目你就不会有这样的感觉啦
> >
> > yi huang 写道:
> > > and http://awaretek.com/tutorials.html
> > >
> > > On 11/21/06, *张爱华* <ahzhang828 at gmail.com
> > > ahzhang828 at gmail.com>> wrote:
> > >
> > >     现在需要用python写一个解析html的程序,python的语法都看得明白,可是
> > >     感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多
> > >     谢多谢
> > >     _______________________________________________
> > >     python-chinese
> > >     Post: send python-chinese at lists.python.cn
> > >     python-chinese at lists.python.cn>
> > >     Subscribe: send subscribe to
> > >     python-chinese-request at lists.python.cn
> > >     python-chinese-request at lists.python.cn>
> > >     Unsubscribe: send unsubscribe to
> > >     python-chinese-request at lists.python.cn
> > >     python-chinese-request at lists.python.cn>
> > >     Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > >
> > > --
> > > http://codeplayer.blogspot.com/
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> > > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>


-- 
GoogleTalk: qcxhome at gmail.com
MSN: qcxhome at hotmail.com
My Space: tkdchen.spaces.live.com
BOINC: boinc.berkeley.edu
中国分布式计算总站: www.equn.com

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 10:54

NewBoyTim newboytim在163.com
星期二 十一月 21 10:54:35 HKT 2006

确实有这样的问题

小项目比较小不容易理解

 

  _____  

From: python-chinese-bounces at lists.python.cn
[mailto:python-chinese-bounces at lists.python.cn] On Behalf Of 张爱华
Sent: Tuesday, November 21, 2006 10:16 AM
To: python-chinese at lists.python.cn
Subject: Re: [python-chinese]新手,请问从哪里可以找到一些源代码来阅读

 

嗯,多谢.
现在这个工作就是一个小项目,按照我以前的习惯都是先看一下基本语法再看例子再看
库的
这次没有找到相关的例子比较郁闷

2006/11/21, amingsc <amingsc at gmail.com>:

我的看法是多实践
自己做一个好玩点的小项目练练会进步很快
遇到问题再去查看文档、book、sourcecode,最后不行才是到list求助
完成两个小项目你就不会有这样的感觉啦

yi huang 写道:
> and http://awaretek.com/tutorials.html
> 
> On 11/21/06, *张爱华* <ahzhang828 at gmail.com
> ahzhang828 at gmail.com>> wrote:
>
>     现在需要用python写一个解析html的程序,python的语法都看得明白,可是 
>     感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多
>     谢多谢
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese at lists.python.cn
>     python-chinese at lists.python.cn>
>     Subscribe: send subscribe to
>     python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     Unsubscribe: send unsubscribe to
>     python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn> 
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> --
> http://codeplayer.blogspot.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese 
_______________________________________________
python-chinese
Post: send python-chinese at lists.python.cn
Subscribe: send subscribe to python-chinese-request at lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20061121/a284d78e/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月21日 星期二 11:33

shhgs shhgs.efhilt在gmail.com
星期二 十一月 21 11:33:13 HKT 2006

Python in a Nutshell是Py标准类库的最佳注释。

On 11/20/06, NewBoyTim <newboytim在163.com> wrote:
>
>
>
>
> 确实有这样的问题
>
> 小项目比较小不容易理解
>
>
>
>  ________________________________
>
>
> From: python-chinese-bounces在lists.python.cn
> [mailto:python-chinese-bounces在lists.python.cn] On Behalf
> Of 张爱华
>  Sent: Tuesday, November 21, 2006 10:16 AM
>  To: python-chinese在lists.python.cn
>  Subject: Re: [python-chinese]新手,请问从哪里可以找到一些源代码来阅读
>
>
>
>
> 嗯,多谢.
>  现在这个工作就是一个小项目,按照我以前的习惯都是先看一下基本语法再看例子再看库的
>  这次没有找到相关的例子比较郁闷
>
>
> 2006/11/21, amingsc <amingsc在gmail.com>:
>
> 我的看法是多实践
>  自己做一个好玩点的小项目练练会进步很快
>  遇到问题再去查看文档、book、sourcecode,最后不行才是到list求助
>  完成两个小项目你就不会有这样的感觉啦
>
>  yi huang 写道:
>  > and http://awaretek.com/tutorials.html
>  >
>  > On 11/21/06, *张爱华* <ahzhang828在gmail.com
>  > ahzhang828在gmail.com>> wrote:
>  >
>  >     现在需要用python写一个解析html的程序,python的语法都看得明白,可是
>  >     感觉还是很难编程,希望各位能指点一下,哪有相关的源代码可以阅读,多
>  >     谢多谢
>  >     _______________________________________________
>  >     python-chinese
>  >     Post: send python-chinese在lists.python.cn
>  >     python-chinese在lists.python.cn>
>  >     Subscribe: send subscribe to
>  >     python-chinese-request在lists.python.cn
>  >     python-chinese-request在lists.python.cn>
>  >     Unsubscribe: send unsubscribe to
>  >     python-chinese-request在lists.python.cn
>  >     python-chinese-request在lists.python.cn>
>  >     Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>  >
>  >
>  >
>  >
>  > --
>  > http://codeplayer.blogspot.com/
>  >
> ------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > python-chinese
>  > Post: send python-chinese在lists.python.cn
>  > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
>  > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
>  > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>  _______________________________________________
>  python-chinese
>  Post: send python-chinese在lists.python.cn
>  Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
>  Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
>  Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号